[][src]Trait lite_parser::parser::Parser

pub trait Parser<I: Input> {
    type Output;
    fn parse(
        input: &I,
        current: I::Position,
        context: &ParserContext
    ) -> ResultOf<I, Self::Output>; }

Associated Types

type Output

Loading content...

Required methods

fn parse(
    input: &I,
    current: I::Position,
    context: &ParserContext
) -> ResultOf<I, Self::Output>

Loading content...

Implementors

impl<I: Input> Parser<I> for Null[src]

type Output = ()

impl<I: Input, P: Parser<I>> Parser<I> for OneOrMore<P>[src]

type Output = Vec<P::Output>

impl<I: Input, P: Parser<I>, P2: Parser<I>> Parser<I> for Concat<P, P2>[src]

type Output = (P::Output, P2::Output)

impl<I: Input, P: Parser<I>, P2: Parser<I>> Parser<I> for OneOf<P, P2>[src]

type Output = Either<P::Output, P2::Output>

impl<P: Predicate<char>, I: Input> Parser<I> for ExpectChar<P>[src]

type Output = char

Loading content...