pub enum TokenClass {
Show 13 variants
Keyword,
Type,
Function,
Variable,
String,
Number,
Operator,
Namespace,
Modifier,
Property,
Comment,
Parameter,
EnumMember,
}Expand description
What a token IS, presentation-wise. Mirrors the LSP semantic-token vocabulary (the LSP legend maps 1:1; the REPL maps to ANSI colors).
Variants§
Keyword
Type
Function
Variable
String
Number
Operator
Namespace
Modifier
Property
Comment
Parameter
EnumMember
Trait Implementations§
Source§impl Clone for TokenClass
impl Clone for TokenClass
Source§fn clone(&self) -> TokenClass
fn clone(&self) -> TokenClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TokenClass
impl Debug for TokenClass
Source§impl PartialEq for TokenClass
impl PartialEq for TokenClass
Source§fn eq(&self, other: &TokenClass) -> bool
fn eq(&self, other: &TokenClass) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TokenClass
impl Eq for TokenClass
impl StructuralPartialEq for TokenClass
Auto Trait Implementations§
impl Freeze for TokenClass
impl RefUnwindSafe for TokenClass
impl Send for TokenClass
impl Sync for TokenClass
impl Unpin for TokenClass
impl UnsafeUnpin for TokenClass
impl UnwindSafe for TokenClass
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