pub trait QuestionMatcherwhere
Self: Sized,{
// Required methods
fn parse<S: AsRef<str>>(patterns: &[S]) -> Result<Self, ParseError>;
fn test(&self, label: &Label) -> bool;
}
Expand description
Parses the question, and tests it aganinst given full-context label.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl QuestionMatcher for AllQuestion
impl QuestionMatcher for RegexQuestion
Available on crate feature
regex
only.