#[repr(u8)]pub enum HlMod {
Show 20 variants
Associated = 0,
Async = 1,
Attribute = 2,
Callable = 3,
Consuming = 4,
ControlFlow = 5,
CrateRoot = 6,
DefaultLibrary = 7,
Definition = 8,
Documentation = 9,
Injected = 10,
IntraDocLink = 11,
Library = 12,
Macro = 13,
Mutable = 14,
Public = 15,
Reference = 16,
Static = 17,
Trait = 18,
Unsafe = 19,
}Variants§
Associated = 0
Used for items in traits and impls.
Async = 1
Used with keywords like async and await.
Attribute = 2
Used to differentiate individual elements within attribute calls.
Callable = 3
Callable item or value.
Consuming = 4
Value that is being consumed in a function call
ControlFlow = 5
Used with keywords like if and break.
CrateRoot = 6
Used for crate names, like serde.
DefaultLibrary = 7
Used for items from built-in crates (std, core, alloc, test and proc_macro).
Definition = 8
foo in fn foo(x: i32) is a definition, foo in foo(90 + 2) is
not.
Documentation = 9
Doc-strings like this one.
Injected = 10
Highlighting injection like rust code in doc strings or ra_fixture.
IntraDocLink = 11
Used for intra doc links in doc injection.
Library = 12
Used for items from other crates.
Macro = 13
Used to differentiate individual elements within macro calls.
Mutable = 14
Mutable binding.
Public = 15
Used for public items.
Reference = 16
Immutable reference.
Static = 17
Used for associated functions.
Trait = 18
Used for items in traits and trait impls.
Unsafe = 19
Used for unsafe functions, unsafe traits, mutable statics, union accesses and unsafe operations.
Trait Implementations§
source§impl BitOrAssign<HlMod> for Highlight
impl BitOrAssign<HlMod> for Highlight
source§fn bitor_assign(&mut self, rhs: HlMod)
fn bitor_assign(&mut self, rhs: HlMod)
|= operation. Read moresource§impl BitOrAssign<HlMod> for HlMods
impl BitOrAssign<HlMod> for HlMods
source§fn bitor_assign(&mut self, rhs: HlMod)
fn bitor_assign(&mut self, rhs: HlMod)
|= operation. Read moresource§impl Ord for HlMod
impl Ord for HlMod
source§impl PartialEq for HlMod
impl PartialEq for HlMod
source§impl PartialOrd for HlMod
impl PartialOrd for HlMod
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moreimpl Copy for HlMod
impl Eq for HlMod
impl StructuralEq for HlMod
impl StructuralPartialEq for HlMod
Auto Trait Implementations§
impl RefUnwindSafe for HlMod
impl Send for HlMod
impl Sync for HlMod
impl Unpin for HlMod
impl UnwindSafe for HlMod
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
§impl<T> Cast for T
impl<T> Cast for T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.