Trait FromExternalError
pub trait FromExternalError<I, E>
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) -> SelfCreates a new error from an input position, an [ErrorKind] indicating the wrapping parser, and an external error
Implementors
impl<I, E> FromExternalError<I, E> for ()impl<I, E> FromExternalError<I, E> for (I, ErrorKind)impl<I, E> FromExternalError<I, E> for Error<I>