pub struct Highlight { /* private fields */ }Expand description
Highlight structure
Implementations
sourceimpl Highlight
impl Highlight
sourcepub fn highlighter<H>(self, highlighter: H) -> Self where
H: Into<Highlighter>,
pub fn highlighter<H>(self, highlighter: H) -> Self where
H: Into<Highlighter>,
Sets highlighter settings
sourcepub fn field<F>(self, field: F) -> Self where
F: ToString,
pub fn field<F>(self, field: F) -> Self where
F: ToString,
Adds field or field pattern to highlighter
sourcepub fn field_highlighter<F, H>(self, field: F, highlighter: H) -> Self where
F: ToString,
H: Into<Highlighter>,
pub fn field_highlighter<F, H>(self, field: F, highlighter: H) -> Self where
F: ToString,
H: Into<Highlighter>,
Adds field or field pattern to highlighter
Trait Implementations
impl StructuralPartialEq for Highlight
Auto Trait Implementations
impl RefUnwindSafe for Highlight
impl Send for Highlight
impl Sync for Highlight
impl Unpin for Highlight
impl UnwindSafe for Highlight
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more