pub enum Code {
Comment,
String,
Keyword,
Constant,
Function,
Type,
Variable,
Support,
Punctuation,
Path,
Invalid,
Other,
}Expand description
A specific region of code.
Variants§
Comment
A comment.
String
A string or character literal.
Keyword
A keyword or storage word.
Constant
A constant, numeric, or boolean literal.
Function
A function or method name.
Type
A type, class, or tag name.
Variable
A variable.
Support
A built-in or support symbol.
Punctuation
Punctuation.
Path
A path component.
Invalid
An invalid or erroneous construct.
Other
Anything that does not match another class.
Implementations§
Trait Implementations§
impl Copy for Code
impl Eq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnsafeUnpin for Code
impl UnwindSafe for Code
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