pub struct StructKeyword<T: TreeToken = SyntaxToken>(/* private fields */);Expand description
A token representing the struct keyword.
Trait Implementations§
Source§impl<T: TreeToken> AstToken<T> for StructKeyword<T>
impl<T: TreeToken> AstToken<T> for StructKeyword<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.
Source§impl<T: Clone + TreeToken> Clone for StructKeyword<T>
impl<T: Clone + TreeToken> Clone for StructKeyword<T>
Source§fn clone(&self) -> StructKeyword<T>
fn clone(&self) -> StructKeyword<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for StructKeyword<T>where
T: Freeze,
impl<T> RefUnwindSafe for StructKeyword<T>where
T: RefUnwindSafe,
impl<T> Send for StructKeyword<T>where
T: Send,
impl<T> Sync for StructKeyword<T>where
T: Sync,
impl<T> Unpin for StructKeyword<T>where
T: Unpin,
impl<T> UnwindSafe for StructKeyword<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