pub enum Kind {
Text,
Keyword,
Type,
Str,
Number,
Comment,
Attribute,
Punct,
}Expand description
The syntactic class of a span — maps to a theme colour at render time.
Variants§
Text
Plain identifier / whitespace / default text.
Keyword
A language keyword (fn, let, match, …).
Type
A type-ish name (UpperCamelCase, or a primitive like u32).
Str
A string or char literal (including the quotes).
Number
A numeric literal.
Comment
A // line comment or /* */ block comment.
Attribute
An #[attribute] / #![inner].
Punct
Punctuation / operators.
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
Blanket Implementations§
impl<T> Allocation for T
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