pub struct OrSpecRaw { /* private fields */ }Expand description
Raw, ungrouped OR-conditions collected from argv or config, before compilation. Groups are kept in first-seen order.
Implementations§
Source§impl OrSpecRaw
impl OrSpecRaw
pub fn new() -> Self
pub fn add_filter(&mut self, group: &str, spec: String)
pub fn add_grep(&mut self, group: &str, pattern: String)
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
True when there are no OR-conditions at all (the OR clause is then vacuously satisfied and callers can skip compilation).
Sourcepub fn has_filters(&self) -> bool
pub fn has_filters(&self) -> bool
True when any group carries a field-filter condition, which requires a
--format to resolve named captures.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OrSpecRaw
impl RefUnwindSafe for OrSpecRaw
impl Send for OrSpecRaw
impl Sync for OrSpecRaw
impl Unpin for OrSpecRaw
impl UnsafeUnpin for OrSpecRaw
impl UnwindSafe for OrSpecRaw
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