pub enum Pattern {
Eq {
any_of: Vec<String>,
no_case: bool,
},
Delimited {
starts: Vec<String>,
ends: Vec<String>,
reg: Option<RegexSet>,
no_case: bool,
no_trim: bool,
},
Word {
reg: Option<RegexSet>,
},
}
Expand description
Represents a set of rules for the capture to match.
Variants§
Eq
Corresponds to the eq()
filter.
Delimited
Represents a pattern with at least one of starts()
or ends()
.
Fields
Word
Represents a capture without any filters. E.. <foo>
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnwindSafe for Pattern
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