pub struct Highlight { /* private fields */ }
Expand description
Highlight structure
Implementations§
Source§impl Highlight
impl Highlight
Sourcepub fn highlighter<H>(self, highlighter: H) -> Selfwhere
H: Into<Highlighter>,
pub fn highlighter<H>(self, highlighter: H) -> Selfwhere
H: Into<Highlighter>,
Sets highlighter settings
Sourcepub fn field<F>(self, field: F) -> Selfwhere
F: ToString,
pub fn field<F>(self, field: F) -> Selfwhere
F: ToString,
Adds field or field pattern to highlighter
Sourcepub fn field_highlighter<F, H>(self, field: F, highlighter: H) -> Self
pub fn field_highlighter<F, H>(self, field: F, highlighter: H) -> Self
Adds field or field pattern to highlighter
Trait Implementations§
impl StructuralPartialEq for Highlight
Auto Trait Implementations§
impl Freeze for Highlight
impl RefUnwindSafe for Highlight
impl Send for Highlight
impl Sync for Highlight
impl Unpin for Highlight
impl UnwindSafe for Highlight
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