intuicio_parser

Trait Parser

Source
pub trait Parser: Send + Sync {
    // Required method
    fn parse<'a>(
        &self,
        registry: &ParserRegistry,
        input: &'a str,
    ) -> ParseResult<'a>;

    // Provided method
    fn extend(&self, parser: ParserHandle) { ... }
}

Required Methods§

Source

fn parse<'a>( &self, registry: &ParserRegistry, input: &'a str, ) -> ParseResult<'a>

Provided Methods§

Source

fn extend(&self, parser: ParserHandle)

Implementations on Foreign Types§

Source§

impl Parser for ()

Source§

fn parse<'a>(&self, _: &ParserRegistry, input: &'a str) -> ParseResult<'a>

Implementors§