pub struct Token<K: SyntaxKind> {
pub kind: K,
pub text: CompactString,
pub range: TextRange,
pub value: TokenValue,
}Fields§
§kind: K§text: CompactString§range: TextRange§value: TokenValueImplementations§
Source§impl<K: SyntaxKind> Token<K>
impl<K: SyntaxKind> Token<K>
Trait Implementations§
Source§impl<K: SyntaxKind> Hash for Token<K>
impl<K: SyntaxKind> Hash for Token<K>
Source§impl<K: SyntaxKind> PartialEq for Token<K>
impl<K: SyntaxKind> PartialEq for Token<K>
Source§impl<K: SyntaxKind> Token for Token<K>
impl<K: SyntaxKind> Token for Token<K>
Source§fn text(&self) -> CompactString
fn text(&self) -> CompactString
Get the text representation of this token Read more
impl<K: SyntaxKind> Eq for Token<K>
Auto Trait Implementations§
impl<K> Freeze for Token<K>where
K: Freeze,
impl<K> RefUnwindSafe for Token<K>where
K: RefUnwindSafe,
impl<K> Send for Token<K>
impl<K> Sync for Token<K>
impl<K> Unpin for Token<K>where
K: Unpin,
impl<K> UnwindSafe for Token<K>where
K: 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