Struct swc_common::comments::NoopComments
source · [−]pub struct NoopComments;
Expand description
Implementation of Comments which does not store any comments.
Trait Implementations
sourceimpl Clone for NoopComments
impl Clone for NoopComments
sourcefn clone(&self) -> NoopComments
fn clone(&self) -> NoopComments
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Comments for NoopComments
impl Comments for NoopComments
fn add_leading(&self, _: BytePos, _: Comment)
fn add_leading_comments(&self, _: BytePos, _: Vec<Comment>)
fn has_leading(&self, _: BytePos) -> bool
fn move_leading(&self, _: BytePos, _: BytePos)
fn take_leading(&self, _: BytePos) -> Option<Vec<Comment>>
fn get_leading(&self, _: BytePos) -> Option<Vec<Comment>>
fn add_trailing(&self, _: BytePos, _: Comment)
fn add_trailing_comments(&self, _: BytePos, _: Vec<Comment>)
fn has_trailing(&self, _: BytePos) -> bool
fn move_trailing(&self, _: BytePos, _: BytePos)
fn take_trailing(&self, _: BytePos) -> Option<Vec<Comment>>
fn get_trailing(&self, _: BytePos) -> Option<Vec<Comment>>
fn add_pure_comment(&self, _: BytePos)
fn with_leading<F, Ret>(&self, pos: BytePos, f: F) -> Retwhere
Self: Sized,
F: FnOnce(&[Comment]) -> Ret,
fn with_trailing<F, Ret>(&self, pos: BytePos, f: F) -> Retwhere
Self: Sized,
F: FnOnce(&[Comment]) -> Ret,
sourceimpl Debug for NoopComments
impl Debug for NoopComments
sourceimpl Default for NoopComments
impl Default for NoopComments
sourcefn default() -> NoopComments
fn default() -> NoopComments
Returns the “default value” for a type. Read more
sourceimpl Hash for NoopComments
impl Hash for NoopComments
sourceimpl PartialEq<NoopComments> for NoopComments
impl PartialEq<NoopComments> for NoopComments
sourcefn eq(&self, other: &NoopComments) -> bool
fn eq(&self, other: &NoopComments) -> bool
impl Copy for NoopComments
impl Eq for NoopComments
impl StructuralEq for NoopComments
impl StructuralPartialEq for NoopComments
Auto Trait Implementations
impl RefUnwindSafe for NoopComments
impl Send for NoopComments
impl Sync for NoopComments
impl Unpin for NoopComments
impl UnwindSafe for NoopComments
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere
T: Hash + ?Sized,
sourceimpl<C> CommentsExt for Cwhere
C: Comments,
impl<C> CommentsExt for Cwhere
C: Comments,
sourcefn with_leading<F, Ret>(&self, pos: BytePos, op: F) -> Retwhere
F: FnOnce(&[Comment]) -> Ret,
fn with_leading<F, Ret>(&self, pos: BytePos, op: F) -> Retwhere
F: FnOnce(&[Comment]) -> Ret,
👎Deprecated since 0.13.5:
helper methods are merged into Comments itself
sourcefn with_trailing<F, Ret>(&self, pos: BytePos, op: F) -> Retwhere
F: FnOnce(&[Comment]) -> Ret,
fn with_trailing<F, Ret>(&self, pos: BytePos, op: F) -> Retwhere
F: FnOnce(&[Comment]) -> Ret,
👎Deprecated since 0.13.5:
helper methods are merged into Comments itself