Trait ilex::testing::Match

source ·
pub trait Match<Arg>: Rule {
    // Required method
    fn add_token(matcher: &mut Matcher, lexeme: Lexeme<Self>, arg: Arg);
}
Expand description

Records a way in which a matcher can be added for a particular token rule.

See Matcher::then1().

Required Methods§

source

fn add_token(matcher: &mut Matcher, lexeme: Lexeme<Self>, arg: Arg)

Adds a new token to matcher.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Match<(DigitalMatcher,)> for Digital

source§

impl<Digits> Match<(u8, Digits)> for Digital
where Digits: IntoIterator, Digits::Item: Into<Text>,

source§

impl<Open, Close> Match<((Open, Close), Matcher)> for Bracket
where Open: Into<Text>, Close: Into<Text>,

source§

impl<Open, Close, Iter> Match<((Open, Close), Iter)> for Quoted
where Open: Into<Text>, Close: Into<Text>, Iter: IntoIterator, Iter::Item: Into<Content<Text>>,

source§

impl<T: Into<Text>> Match<(T,)> for Ident

source§

impl<T: Into<Text>> Match<(T,)> for Keyword