pub trait Parse {
type PositionRepr: Display;
fn start(&'input self) -> usize;
fn position_repr(&'input self, p: usize) -> Self::PositionRepr;
}
Expand description
A type that can be used as input to a parser.
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.