Trait nom::error::FromExternalError [−][src]
This trait is required by the map_res combinator to integrate error types from external functions, like std::str::FromStr
Required methods
fn from_external_error(input: I, kind: ErrorKind, e: E) -> Self
[src]
Creates a new error from an input position, an ErrorKind indicating the wrapping parser, and an external error
Implementations on Foreign Types
impl<I, E> FromExternalError<I, E> for (I, ErrorKind)
[src]
fn from_external_error(input: I, kind: ErrorKind, _e: E) -> Self
[src]
impl<I, E> FromExternalError<I, E> for ()
[src]
fn from_external_error(_input: I, _kind: ErrorKind, _e: E) -> Self
[src]
Implementors
impl<I, E> FromExternalError<I, E> for Error<I>
[src]
fn from_external_error(input: I, kind: ErrorKind, _e: E) -> Self
[src]
Create a new error from an input position and an external error
impl<I, E> FromExternalError<I, E> for VerboseError<I>
[src]
This is supported on crate feature
alloc
only.fn from_external_error(input: I, kind: ErrorKind, _e: E) -> Self
[src]
Create a new error from an input position and an external error