[][src]Struct nom::error::VerboseError

pub struct VerboseError<I> {
    pub errors: Vec<(I, VerboseErrorKind)>,
}

this error type accumulates errors and their position when backtracking through a parse tree. With some post processing (cf examples/json.rs), it can be used to display user friendly error messages

Fields

errors: Vec<(I, VerboseErrorKind)>

list of errors accumulated by VerboseError, containing the affected part of input data, and some context

Trait Implementations

impl<I> ParseError<I> for VerboseError<I>[src]

fn or(self, other: Self) -> Self[src]

combines two existing error. This function is used to compare errors generated in various branches of alt Read more

impl<I: PartialEq> PartialEq<VerboseError<I>> for VerboseError<I>[src]

impl<I: Clone> Clone for VerboseError<I>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<I: Debug> Debug for VerboseError<I>[src]

Auto Trait Implementations

impl<I> Send for VerboseError<I> where
    I: Send

impl<I> Sync for VerboseError<I> where
    I: Sync

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]