#[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
Used to differentiate individual elements within proc-macro calls.
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 PartialOrd for HlMod
impl PartialOrd for HlMod
impl 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
§impl<T> Cast for T
impl<T> Cast for T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more