Struct nom::error::VerboseError [−][src]
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: Clone> Clone for VerboseError<I>
[src]
fn clone(&self) -> VerboseError<I>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<I: Debug> Debug for VerboseError<I>
[src]
impl<I> ParseError<I> for VerboseError<I>
[src]
fn from_error_kind(input: I, kind: ErrorKind) -> Self
[src]
fn append(input: I, kind: ErrorKind, other: Self) -> Self
[src]
fn from_char(input: I, c: char) -> Self
[src]
fn add_context(input: I, ctx: &'static str, other: Self) -> Self
[src]
fn or(self, other: Self) -> Self
[src]
impl<I: PartialEq> PartialEq<VerboseError<I>> for VerboseError<I>
[src]
fn eq(&self, other: &VerboseError<I>) -> bool
[src]
fn ne(&self, other: &VerboseError<I>) -> bool
[src]
impl<I> StructuralPartialEq for VerboseError<I>
[src]
Auto Trait Implementations
impl<I> RefUnwindSafe for VerboseError<I> where
I: RefUnwindSafe,
I: RefUnwindSafe,
impl<I> Send for VerboseError<I> where
I: Send,
I: Send,
impl<I> Sync for VerboseError<I> where
I: Sync,
I: Sync,
impl<I> Unpin for VerboseError<I> where
I: Unpin,
I: Unpin,
impl<I> UnwindSafe for VerboseError<I> where
I: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,