pub trait FromExternalError<I, E> {
    // Required method
    fn from_external_error(input: I, kind: ErrorKind, e: E) -> Self;
}
Expand description

Create a new error with an external error, from std::str::FromStr

This trait is required by the Parser::map_res combinator.

Required Methods§

source

fn from_external_error(input: I, kind: ErrorKind, e: E) -> Self

Like ParseError::from_error_kind but also include an external error.

Implementations on Foreign Types§

source§

impl<I, E> FromExternalError<I, E> for ()

source§

fn from_external_error(_input: I, _kind: ErrorKind, _e: E) -> Self

Implementors§

source§

impl<I, E> FromExternalError<I, E> for Error<I>

source§

impl<I, E> FromExternalError<I, E> for VerboseError<I>

source§

impl<I, EXT, E> FromExternalError<I, EXT> for ErrMode<E>where E: FromExternalError<I, EXT>,