Struct swc::SwcComments
source · [−]pub struct SwcComments {
pub leading: Arc<DashMap<BytePos, Vec<Comment, Global>, RandomState>>,
pub trailing: Arc<DashMap<BytePos, Vec<Comment, Global>, RandomState>>,
}
Expand description
Multi-threaded implementation of Comments
Fields
leading: Arc<DashMap<BytePos, Vec<Comment, Global>, RandomState>>
trailing: Arc<DashMap<BytePos, Vec<Comment, Global>, RandomState>>
Trait Implementations
pub fn with_leading<F, Ret>(&self, pos: BytePos, f: F) -> Ret where
F: FnOnce(&[Comment]) -> Ret,
SwcComments: Sized,
pub fn with_trailing<F, Ret>(&self, pos: BytePos, f: F) -> Ret where
F: FnOnce(&[Comment]) -> Ret,
SwcComments: Sized,
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for SwcComments
impl Send for SwcComments
impl Sync for SwcComments
impl Unpin for SwcComments
impl !UnwindSafe for SwcComments
Blanket Implementations
Mutably borrows from an owned value. Read more
👎 Deprecated since 0.13.5:
helper methods are merged into Comments itself
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more