pub trait QuestionMatcher
where 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§

source

fn parse(patterns: &[&str]) -> Result<Self, ParseError>

Parses question patterns in string, and if succeeds, returns the parsed question.

source

fn test(&self, label: &Label) -> bool

Checks if the full-context label matches the question.

If you want to test on string label, parse it using Label::from_str() beforehand.

Object Safety§

This trait is not object safe.

Implementors§