Trait pest::Rdp
[−]
[src]
pub trait Rdp { fn new(input: Box<Input>) -> Self; fn input(&mut self) -> &mut Box<Input>; fn matches(&mut self, string: &str) -> bool { ... } fn try(&mut self, rule: Box<Fn(&mut Self) -> bool>) -> bool { ... } fn end(&mut self) -> bool { ... } fn reset(&mut self) { ... } }
A trait
that implements a recursive descent parser on a struct
containing an Input
.
Required Methods
fn new(input: Box<Input>) -> Self
Creates a new Rdp::Self
instance.
Is subject to change in order to enhance flexibility.
fn input(&mut self) -> &mut Box<Input>
Returns &mut Box<Input>
in order for the parser to have access to its input.