Trait jlabel_question::QuestionMatcher
source · pub trait QuestionMatcherwhere
Self: Sized,{
// Required methods
fn parse(patterns: &[&str]) -> Result<Self, ParseError>;
fn test(&self, label: &Label) -> bool;
}
Expand description
Parses the question, and tests it aganinst given full-context label.
Required Methods§
sourcefn parse(patterns: &[&str]) -> Result<Self, ParseError>
fn parse(patterns: &[&str]) -> Result<Self, ParseError>
Parses question patterns in string, and if succeeds, returns the parsed question.
Object Safety§
This trait is not object safe.