pub trait Parse {
type PositionRepr: Display;
// Required methods
fn start<'input>(&'input self) -> usize;
fn is_eof<'input>(&'input self, p: usize) -> bool;
fn position_repr<'input>(&'input self, p: usize) -> Self::PositionRepr;
}Expand description
A type that can be used as input to a parser.
Required Associated Types§
type PositionRepr: Display
Required Methods§
fn start<'input>(&'input self) -> usize
fn is_eof<'input>(&'input self, p: usize) -> bool
fn position_repr<'input>(&'input self, p: usize) -> Self::PositionRepr
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".