pub enum TokenType {
Show 22 variants
Keyword,
ControlFlow,
Type,
Function,
Macro,
Identifier,
Parameter,
Property,
String,
StringEscape,
Number,
Boolean,
Comment,
DocComment,
Operator,
Punctuation,
Tag,
Attribute,
Namespace,
Heading,
Link,
Variable,
}Expand description
Token classification for semantic syntax highlighting.
Variants§
Keyword
ControlFlow
Type
Function
Macro
Identifier
Parameter
Property
String
StringEscape
Number
Boolean
Comment
DocComment
Operator
Punctuation
Tag
Attribute
Namespace
Heading
Link
Variable
Trait Implementations§
impl Copy for TokenType
Source§impl<'de> Deserialize<'de> for TokenType
impl<'de> Deserialize<'de> for TokenType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TokenType
impl StructuralPartialEq for TokenType
Auto Trait Implementations§
impl Forget for TokenType
impl Freeze for TokenType
impl Move for TokenType
impl RefUnwindSafe for TokenType
impl Send for TokenType
impl Sync for TokenType
impl Unpin for TokenType
impl UnsafeUnpin for TokenType
impl UnwindSafe for TokenType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.