pub struct HighlightConfig<'a> {
pub strings: bool,
pub comments: bool,
pub punctuation: bool,
pub specialize_punctuation: bool,
pub operator: bool,
pub specialize_operator: bool,
pub inject_doc_comment: bool,
pub macro_bang: bool,
pub syntactic_name_ref_highlighting: bool,
pub minicore: MiniCore<'a>,
}Fields§
§strings: boolWhether to highlight strings
comments: boolWhether to highlight comments
punctuation: boolWhether to highlight punctuation
specialize_punctuation: boolWhether to specialize punctuation highlights
operator: boolWhether to highlight operator
specialize_operator: boolWhether to specialize operator highlights
inject_doc_comment: boolWhether to inject highlights into doc comments
macro_bang: boolWhether to highlight the macro call bang
syntactic_name_ref_highlighting: boolWhether to highlight unresolved things be their syntax
minicore: MiniCore<'a>Trait Implementations§
Source§impl<'a> Clone for HighlightConfig<'a>
impl<'a> Clone for HighlightConfig<'a>
Source§fn clone(&self) -> HighlightConfig<'a>
fn clone(&self) -> HighlightConfig<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for HighlightConfig<'a>
impl<'a> Debug for HighlightConfig<'a>
impl<'a> Copy for HighlightConfig<'a>
Auto Trait Implementations§
impl<'a> Freeze for HighlightConfig<'a>
impl<'a> RefUnwindSafe for HighlightConfig<'a>
impl<'a> Send for HighlightConfig<'a>
impl<'a> Sync for HighlightConfig<'a>
impl<'a> Unpin for HighlightConfig<'a>
impl<'a> UnwindSafe for HighlightConfig<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§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>
Converts
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>
Converts
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