Struct rhit::StrFilter [−][src]
pub struct StrFilter { /* fields omitted */ }
a filter for strings
Implementations
impl StrFilter
[src]
impl StrFilter
[src]pub fn new(pattern: &str) -> Result<Self, StrFilterParseError>
[src]
pub fn with_be_syntax(pattern: &str) -> Result<Self, StrFilterParseError>
[src]
parse a filter defined with a rich binary expression syntax (parentheses, &, |, etc.) a sequence of patterns, each one with an optional NOT before.
Example: ̀ dystroy & !miaou`
pub fn with_comma_syntax(pattern: &str) -> Result<Self, StrFilterParseError>
[src]
parse a filter defined with the comma syntax, ie a AND on a sequence of patterns, each one with an optional NOT before.
Example: ̀ dystroy,!miaou`
pub fn accepts(&self, candidate: &str) -> bool
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for StrFilter
impl RefUnwindSafe for StrFilter
impl UnwindSafe for StrFilter
impl UnwindSafe for StrFilter
Blanket Implementations
impl<T> Pointable for T
impl<T> Pointable for T