Trait nom::error::FromExternalError [−][src]
pub trait FromExternalError<I, E> {
fn from_external_error(input: I, kind: ErrorKind, e: E) -> Self;
}
Expand description
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
fn from_external_error(input: I, kind: ErrorKind, e: E) -> Self
Creates a new error from an input position, an ErrorKind indicating the wrapping parser, and an external error