Trait peg::ParseElem[][src]

pub trait ParseElem: Parse {
    type Element;
    pub 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

pub 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 ParseElem for str[src]

type Element = char

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

type Element = T

Loading content...

Implementors

Loading content...