Trait pest::Parser [] [src]

pub trait Parser<R: RuleType> {
    fn parse<I: Input>(
        rule: R,
        input: Rc<I>
    ) -> Result<Pairs<R, I>, Error<R, I>>; fn parse_str(
        rule: R,
        input: &str
    ) -> Result<Pairs<R, StrInput>, Error<R, StrInput>> { ... } }

A trait that defines a Parser.

Required Methods

Parses an Input starting from rule.

Provided Methods

Parses an &str starting from rule.

Implementors