Struct peel::example::prelude::Parser1
[−]
[src]
pub struct Parser1;
The first example parser
Trait Implementations
impl Debug for Parser1
[src]
impl Clone for Parser1
[src]
fn clone(&self) -> Parser1
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Parser for Parser1
[src]
type Result = ParserResult
The type for result reporting, usually an enum
type Variant = ParserVariant
The type of the parser itself, usually an enum
fn parse<'a>(&self,
input: &'a [u8],
_: Option<&ExampleNode>,
_: Option<&ExampleArena>,
_: Option<&Vec<Self::Result>>)
-> IResult<&'a [u8], (Self::Result, ParserState)>
input: &'a [u8],
_: Option<&ExampleNode>,
_: Option<&ExampleArena>,
_: Option<&Vec<Self::Result>>)
-> IResult<&'a [u8], (Self::Result, ParserState)>
The actual parsing entry point
fn variant(&self) -> Self::Variant
Return the actual enum variant of the parser