#[repr(u8)]pub enum HlMod {
Show 22 variants
Associated = 0,
Async = 1,
Attribute = 2,
Callable = 3,
Const = 4,
Consuming = 5,
ControlFlow = 6,
CrateRoot = 7,
DefaultLibrary = 8,
Definition = 9,
Documentation = 10,
Injected = 11,
IntraDocLink = 12,
Library = 13,
Macro = 14,
ProcMacro = 15,
Mutable = 16,
Public = 17,
Reference = 18,
Static = 19,
Trait = 20,
Unsafe = 21,
}
Variants§
Associated = 0
Used for associated items.
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.
Const = 4
Constant operation.
Consuming = 5
Value that is being consumed in a function call
ControlFlow = 6
Used with keywords like if
and break
.
CrateRoot = 7
Used for crate names, like serde
.
DefaultLibrary = 8
Used for items from built-in crates (std, core, alloc, test and proc_macro).
Definition = 9
foo
in fn foo(x: i32)
is a definition, foo
in foo(90 + 2)
is
not.
Documentation = 10
Doc-strings like this one.
Injected = 11
Highlighting injection like rust code in doc strings or ra_fixture.
IntraDocLink = 12
Used for intra doc links in doc injection.
Library = 13
Used for items from other crates.
Macro = 14
Used to differentiate individual elements within macro calls.
ProcMacro = 15
Mutable = 16
Mutable binding.
Public = 17
Used for public items.
Reference = 18
Immutable reference.
Static = 19
Used for associated items, except Methods. (Some languages call these static members)
Trait = 20
Used for items in traits and trait impls.
Unsafe = 21
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 StructuralPartialEq for HlMod
Auto Trait Implementations§
impl Freeze for HlMod
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
source§impl<T> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
U
using CastTo
.source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.