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::try_map
combinator.
Required Methods§
Sourcefn from_external_error(input: &I, kind: ErrorKind, e: E) -> Self
fn from_external_error(input: &I, kind: ErrorKind, e: E) -> Self
Like ParserError::from_error_kind
but also include an external error.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.