Trait peg_runtime::ParseElem[][src]

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

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

Associated Types

type Element[src]

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

Loading content...

Required methods

fn parse_elem(&self, pos: usize) -> RuleResult<Self::Element>[src]

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

Loading content...

Implementations on Foreign Types

impl<T: Clone> ParseElem for [T][src]

type Element = T

impl ParseElem for str[src]

type Element = char

Loading content...

Implementors

Loading content...