pub enum HighlightKind {
Keyword,
String,
Number,
Comment,
Macro,
Identifier,
Operator,
}Expand description
Local definition of highlight kinds
Variants§
Keyword
Keyword
String
String
Number
Number
Comment
Comment
Macro
Macro
Identifier
Identifier
Operator
Operator
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HighlightKind
Source§impl Debug for HighlightKind
impl Debug for HighlightKind
impl Eq for HighlightKind
Source§impl PartialEq for HighlightKind
impl PartialEq for HighlightKind
Source§fn eq(&self, other: &HighlightKind) -> bool
fn eq(&self, other: &HighlightKind) -> bool
Tests for
self and other values to be equal, and is used by ==.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