pub struct AsKeyword<T: TreeToken = SyntaxToken>(/* private fields */);Expand description
A token representing the as keyword.
Trait Implementations§
Source§impl<T: TreeToken> AstToken<T> for AsKeyword<T>
impl<T: TreeToken> AstToken<T> for AsKeyword<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.
Auto Trait Implementations§
impl<T> Freeze for AsKeyword<T>where
T: Freeze,
impl<T> RefUnwindSafe for AsKeyword<T>where
T: RefUnwindSafe,
impl<T> Send for AsKeyword<T>where
T: Send,
impl<T> Sync for AsKeyword<T>where
T: Sync,
impl<T> Unpin for AsKeyword<T>where
T: Unpin,
impl<T> UnwindSafe for AsKeyword<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