pub enum Token {
Plain,
Keyword,
Type,
Function,
Macro,
String,
Number,
Comment,
Attribute,
Punct,
}Expand description
Kind of a highlighted piece of code.
Variants§
Plain
Anything else.
Keyword
Keyword.
Type
Type name.
Function
Function name.
Macro
Macro name.
String
String literal.
Number
Number literal.
Comment
Comment.
Attribute
Attribute or decorator.
Punct
Punctuation or operator.
Trait Implementations§
impl Copy for Token
impl Eq for Token
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnsafeUnpin for Token
impl UnwindSafe for Token
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