Struct swc_common::comments::SingleThreadedComments [−][src]
pub struct SingleThreadedComments { /* fields omitted */ }
Expand description
Single-threaded storage for comments.
Implementations
pub fn from_leading_and_trailing(
leading: SingleThreadedCommentsMap,
trailing: SingleThreadedCommentsMap
) -> Self
pub fn from_leading_and_trailing(
leading: SingleThreadedCommentsMap,
trailing: SingleThreadedCommentsMap
) -> Self
Creates a new SingleThreadedComments
from the provided leading and
trailing.
Takes all the comments as (leading, trailing).
pub fn borrow_all<'a>(
&'a self
) -> (Ref<'a, SingleThreadedCommentsMapInner>, Ref<'a, SingleThreadedCommentsMapInner>)
pub fn borrow_all<'a>(
&'a self
) -> (Ref<'a, SingleThreadedCommentsMapInner>, Ref<'a, SingleThreadedCommentsMapInner>)
Borrows all the comments as (leading, trailing).
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for SingleThreadedComments
impl !Send for SingleThreadedComments
impl !Sync for SingleThreadedComments
impl Unpin for SingleThreadedComments
impl !UnwindSafe for SingleThreadedComments
Blanket Implementations
Mutably borrows from an owned value. Read more