pub enum GrepPatterns {
None,
StrongOnly(Regex),
WeakOnly(Regex),
Both {
strong: Regex,
weak: Regex,
highlight: Regex,
},
}Expand description
Pattern configuration for grep, designed to make invalid states unrepresentable. The highlight regex is always derivable from the pattern state.
Variants§
None
No grep patterns configured
StrongOnly(Regex)
Only strong (filtering) pattern
WeakOnly(Regex)
Only weak (highlighting) pattern
Both
Both strong and weak patterns, with precomputed combined highlight regex
Implementations§
Source§impl GrepPatterns
impl GrepPatterns
Trait Implementations§
Source§impl Default for GrepPatterns
impl Default for GrepPatterns
Source§fn default() -> GrepPatterns
fn default() -> GrepPatterns
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GrepPatterns
impl RefUnwindSafe for GrepPatterns
impl Send for GrepPatterns
impl Sync for GrepPatterns
impl Unpin for GrepPatterns
impl UnwindSafe for GrepPatterns
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