[−][src]Enum dialect::HighlightGroup
The set of possible syntactical forms text can be assigned.
Variants
a keyword that controls the flow of execution within code, e.g. if
or for
any other kind of keyword
the name of a function when defined
the name of a function when called
the name of a type when defined
the name of a type when used
the name of an interface/trait/typeclass when defined
the name of an interface/trait/typeclass when used
a ‘primitive’ baked into the language (e.g. int
is a primitive type in C++, but
std::vector
isn’t)
the name of a variable when defined
the name of a variable when used
the name of a struct/class member when defined
the name of a struct/class member when used
the name of a constant ‘variable’ when defined
the name of a constant ‘variable’ when used
the name of a module when defined
the name of a module when used
the name of a macro when defined
the name of a macro when used
the name of a special identifier (e.g. a symbol in Ruby or a lifetime in Rust) when defined
the name of a special identifier when used
the name of a function parameter
a number literal (whether integer or floating-point)
a string literal
the delimiters around a string literal ("
in most languages)
a character literal
the delimiters around a character literal ('
in most languages)
a boolean literal (only to be used if it is a keyword in the language -- if boolean values
are ‘just’ normal types like in Python and Haskell, then the TyUse
variant is more
appropriate)
a pre-processor invocation that is not a macro itself (e.g. #if
and #define
in C)
the name of something that is an attribute of another thing (e.g. the word derive
in
#[derive(Debug)]
in Rust, or a decorator in Python)
a comment
a documentation comment
an operator that accesses the members of something, regardless of whether this is some kind
of ‘object’ or a module, e.g. .
and ::
in Rust
an operator relating to pointers (e.g. *
and &
in C, those as well as &mut
in Rust)
an operator that assigns a value to a binding of some sort (=
and +=
are examples)
an operator that has two operands (e.g. +
, ||
)
any operator not covered by the other variants
a delimiter (e.g. (
)
a separator of something (e.g. ,
or ->
)
a terminator of something (e.g. ;
)
an error
Trait Implementations
impl Clone for HighlightGroup
[src]
fn clone(&self) -> HighlightGroup
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for HighlightGroup
[src]
impl Debug for HighlightGroup
[src]
impl Eq for HighlightGroup
[src]
impl Hash for HighlightGroup
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl IntoEnumIterator for HighlightGroup
[src]
type Iterator = HighlightGroupIter
fn iter() -> HighlightGroupIter
[src]
impl Ord for HighlightGroup
[src]
fn cmp(&self, other: &HighlightGroup) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<HighlightGroup> for HighlightGroup
[src]
fn eq(&self, other: &HighlightGroup) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<HighlightGroup> for HighlightGroup
[src]
fn partial_cmp(&self, other: &HighlightGroup) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for HighlightGroup
[src]
impl StructuralPartialEq for HighlightGroup
[src]
Auto Trait Implementations
impl RefUnwindSafe for HighlightGroup
impl Send for HighlightGroup
impl Sync for HighlightGroup
impl Unpin for HighlightGroup
impl UnwindSafe for HighlightGroup
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,