[][src]Trait pegtastic::ParseElem

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

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>

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

Loading content...

Implementations on Foreign Types

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

type Element = T

impl ParseElem for str[src]

type Element = char

Loading content...

Implementors

Loading content...