[][src]Trait nom::error::ContextError

pub trait ContextError<I>: Sized {
    pub fn add_context(_input: I, _ctx: &'static str, other: Self) -> Self { ... }
}

This trait is required by the context combinator to add a static string to an existing error

Provided methods

pub fn add_context(_input: I, _ctx: &'static str, other: Self) -> Self[src]

Creates a new error from an input position, a static string and an existing error. This is used mainly in the context combinator, to add user friendly information to errors when backtracking through a parse tree

Loading content...

Implementations on Foreign Types

impl<I> ContextError<I> for (I, ErrorKind)[src]

impl<I> ContextError<I> for ()[src]

Loading content...

Implementors

impl<I> ContextError<I> for Error<I>[src]

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

This is supported on crate feature alloc only.
Loading content...