Trait peg::Parse[][src]

pub trait Parse {
    type PositionRepr: Display;
    pub fn start(&'input self) -> usize;
pub fn is_eof(&'input self, p: usize) -> bool;
pub 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

pub fn start(&'input self) -> usize[src]

pub fn is_eof(&'input self, p: usize) -> bool[src]

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

Loading content...

Implementations on Foreign Types

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

type PositionRepr = usize

impl Parse for str[src]

type PositionRepr = LineCol

Loading content...

Implementors

Loading content...