[][src]Trait peg::Parse

pub trait Parse {
    type PositionRepr: Display;
    fn start(&'input self) -> usize;
fn position_repr(&'input self, p: usize) -> Self::PositionRepr; }

A type that can be used as input to a parser.

Associated Types

Loading content...

Required methods

fn start(&'input self) -> usize

fn position_repr(&'input self, p: usize) -> Self::PositionRepr

Loading content...

Implementations on Foreign Types

impl Parse for str[src]

type PositionRepr = LineCol

impl<T> Parse for [T][src]

type PositionRepr = usize

Loading content...

Implementors

Loading content...