Trait peg_runtime::ParseElem[][src]

pub trait ParseElem<'input>: Parse {
    type Element: Copy;
    fn parse_elem(&'input self, pos: usize) -> RuleResult<Self::Element>;
}
Expand description

A parser input type supporting the [...] syntax.

Associated Types

Type of a single atomic element of the input, for example a character or token

Required methods

Get the element at pos, or Failed if past end of input.

Implementations on Foreign Types

Implementors