[][src]Trait chonk::framework::matcher::Matcher

pub trait Matcher<Msg> {
    fn is<'a>(&self, ctx: ParserContext<'a>) -> ParserResult<'a, &'a str, Msg>;
fn isnt<'a>(&self, ctx: ParserContext<'a>) -> ParserResult<'a, &'a str, Msg>; }

Run a parser that matches or does not match ahead.

Required methods

fn is<'a>(&self, ctx: ParserContext<'a>) -> ParserResult<'a, &'a str, Msg>

Run a parser that matches ahead.

fn isnt<'a>(&self, ctx: ParserContext<'a>) -> ParserResult<'a, &'a str, Msg>

Run a parser that does not match ahead.

Loading content...

Implementations on Foreign Types

impl<Msg> Matcher<Msg> for char[src]

impl<'a, Msg> Matcher<Msg> for Chars<'a>[src]

impl<Msg, '_> Matcher<Msg> for &'_ str[src]

impl<Msg> Matcher<Msg> for String[src]

Loading content...

Implementors

impl<F: Fn(char) -> bool, Msg> Matcher<Msg> for F[src]

Loading content...