pub enum Class {
Comment,
String,
Keyword,
Type,
Number,
}Expand description
What a span of text is, for the frontend to pick a colour for.
Variants§
Comment
A line or block comment, including its delimiters.
String
A string literal, including its quotes.
Keyword
A word listed under keywords.
Type
A word listed under types.
Number
A word starting with a digit.
Trait Implementations§
impl Copy for Class
impl Eq for Class
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnsafeUnpin for Class
impl UnwindSafe for Class
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