pub enum HighlightKind {
Keyword,
Literal,
Identifier,
Comment,
Operator,
Punctuation,
Function,
Type,
}Expand description
Types of syntax elements that can be highlighted.
Variants§
Keyword
Keywords.
Literal
Literals.
Identifier
Identifiers.
Comment
Comments.
Operator
Operators.
Punctuation
Punctuation.
Function
Functions and methods.
Type
Types and classes.
Trait Implementations§
Source§impl Clone for HighlightKind
impl Clone for HighlightKind
Source§fn clone(&self) -> HighlightKind
fn clone(&self) -> HighlightKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HighlightKind
impl Debug for HighlightKind
Source§impl PartialEq for HighlightKind
impl PartialEq for HighlightKind
impl Copy for HighlightKind
impl Eq for HighlightKind
impl StructuralPartialEq for HighlightKind
Auto Trait Implementations§
impl Freeze for HighlightKind
impl RefUnwindSafe for HighlightKind
impl Send for HighlightKind
impl Sync for HighlightKind
impl Unpin for HighlightKind
impl UnsafeUnpin for HighlightKind
impl UnwindSafe for HighlightKind
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