pub struct Ident<T: TreeToken = SyntaxToken>(/* private fields */);Expand description
Represents an identifier token.
Implementations§
Trait Implementations§
Source§impl<T: TreeToken> AstToken<T> for Ident<T>
impl<T: TreeToken> AstToken<T> for Ident<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 Ident<T>
impl<T: TreeToken> StructuralPartialEq for Ident<T>
Auto Trait Implementations§
impl<T> Freeze for Ident<T>where
T: Freeze,
impl<T> RefUnwindSafe for Ident<T>where
T: RefUnwindSafe,
impl<T> Send for Ident<T>where
T: Send,
impl<T> Sync for Ident<T>where
T: Sync,
impl<T> Unpin for Ident<T>where
T: Unpin,
impl<T> UnwindSafe for Ident<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