pub trait ReplaceableParseError<F, T>: GeneralParseError<T> {
type From: GeneralParseError<F>;
// Required method
fn replace_input(from: Self::From, input: T) -> Self;
}
Expand description
Helper trait used to convert a parser error from one input type to another.
Used by ParserState::lift
.
Required Associated Types§
type From: GeneralParseError<F>
Required Methods§
fn replace_input(from: Self::From, input: T) -> Self
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.