pub struct Comment<T: TreeToken = SyntaxToken>(/* private fields */);Expand description
Represents a comment token in the AST.
Implementations§
Trait Implementations§
Source§impl<T: TreeToken> AstToken<T> for Comment<T>
impl<T: TreeToken> AstToken<T> for Comment<T>
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Determines if the kind can be cast to this representation.
Source§fn kind(&self) -> SyntaxKind
fn kind(&self) -> SyntaxKind
Gets the syntax kind of the token.
impl<T: Eq + TreeToken> Eq for Comment<T>
impl<T: PartialEq + TreeToken> StructuralPartialEq for Comment<T>
Auto Trait Implementations§
impl<T> Freeze for Comment<T>where
T: Freeze,
impl<T> RefUnwindSafe for Comment<T>where
T: RefUnwindSafe,
impl<T> Send for Comment<T>where
T: Send,
impl<T> Sync for Comment<T>where
T: Sync,
impl<T> Unpin for Comment<T>where
T: Unpin,
impl<T> UnsafeUnpin for Comment<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Comment<T>where
T: UnwindSafe,
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.