Enum nom::Err [] [src]

pub enum Err<'a> {
    Code(u32),
    Node(u32Box<Err<'a>>),
    Position(u32&'a [u8]),
    NodePosition(u32&'a [u8]Box<Err<'a>>),
}

Contains the error that a parser can return

Variants

Code(u32)

an error code

Node(u32Box<Err<'a>>)

an error code, and the next error in the parsing chain

Position(u32&'a [u8])

an error code and the related input position

NodePosition(u32&'a [u8]Box<Err<'a>>)

an error code, the related input position, and the next error in the parsing chain

Trait Implementations

impl<'a> Clone for Err<'a>
[src]

fn clone(&self) -> Err<'a>

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<'a> Eq for Err<'a>
[src]

impl<'a> PartialEq for Err<'a>
[src]

fn eq(&self, __arg_0: &Err<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Err<'a>) -> bool

This method tests for !=.

impl<'a> Debug for Err<'a>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.