pub struct AnyComment {
syntax: SyntaxToken,
}Fields§
§syntax: SyntaxTokenImplementations§
Source§impl AnyComment
impl AnyComment
pub fn shape(&self) -> CommentShape
pub fn doc_kind(&self) -> Option<AttrKind>
pub fn kind(&self) -> CommentKind
pub fn prefix(&self) -> &'static str
pub fn is_inner(&self) -> bool
pub fn is_outer(&self) -> bool
Sourcepub fn text_with_markers(&self) -> &str
pub fn text_with_markers(&self) -> &str
Returns the text with the /*...*/ or //... or /**...*/ or /*!...*/ or ///... or //!... markers.
Trait Implementations§
Source§impl AstToken for AnyComment
impl AstToken for AnyComment
Source§impl Clone for AnyComment
impl Clone for AnyComment
Source§impl Debug for AnyComment
impl Debug for AnyComment
impl Eq for AnyComment
Source§impl Hash for AnyComment
impl Hash for AnyComment
Source§impl PartialEq for AnyComment
impl PartialEq for AnyComment
impl StructuralPartialEq for AnyComment
Auto Trait Implementations§
impl !RefUnwindSafe for AnyComment
impl !Send for AnyComment
impl !Sync for AnyComment
impl !UnwindSafe for AnyComment
impl Freeze for AnyComment
impl Unpin for AnyComment
impl UnsafeUnpin for AnyComment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more