Struct peel::example::prelude::Parser4
[−]
[src]
pub struct Parser4;
The third example parser
Trait Implementations
impl Debug for Parser4
[src]
impl Clone for Parser4
[src]
fn clone(&self) -> Parser4
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 Parser4
[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