pub struct HighlightMatches { /* private fields */ }Expand description
Styles every match of a regular expression.
Only whole matches are styled: unlike Text::highlight_regex, a named
group is just a group here, never a style name. A match the regex engine
cannot finish (its backtrack limit) is an error, as it is for KeepLines.
Implementations§
Trait Implementations§
Source§impl Clone for HighlightMatches
impl Clone for HighlightMatches
Source§impl Debug for HighlightMatches
impl Debug for HighlightMatches
Source§impl TextTransform for HighlightMatches
impl TextTransform for HighlightMatches
Auto Trait Implementations§
impl Freeze for HighlightMatches
impl RefUnwindSafe for HighlightMatches
impl Send for HighlightMatches
impl Sync for HighlightMatches
impl Unpin for HighlightMatches
impl UnsafeUnpin for HighlightMatches
impl UnwindSafe for HighlightMatches
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