Enum nom::Err [] [src]

pub enum Err<P, E = u32> {
    Code(ErrorKind<E>),
    Node(ErrorKind<E>, Box<Err<P, E>>),
    Position(ErrorKind<E>, P),
    NodePosition(ErrorKind<E>, P, Box<Err<P, E>>),
}

Contains the error that a parser can return

Variants

Code(ErrorKind<E>)Node(ErrorKind<E>, Box<Err<P, E>>)Position(ErrorKind<E>, P)NodePosition(ErrorKind<E>, P, Box<Err<P, E>>)

Trait Implementations

impl<P: Clone, E: Clone> Clone for Err<P, E>
[src]

fn clone(&self) -> Err<P, E>

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<P: Eq, E: Eq> Eq for Err<P, E>
[src]

impl<P: PartialEq, E: PartialEq> PartialEq for Err<P, E>
[src]

fn eq(&self, __arg_0: &Err<P, E>) -> bool

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

fn ne(&self, __arg_0: &Err<P, E>) -> bool

This method tests for !=.

impl<P: Debug, E: Debug> Debug for Err<P, E>
[src]

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

Formats the value using the given formatter.