pub trait ParseErrorInto<Item, Range, Position>: Sized {
// Required method
fn into_other_error<T, Item2, Range2, Position2>(self) -> T
where T: ParseError<Item2, Range2, Position2>,
Item2: From<Item>,
Range2: From<Range>,
Position2: From<Position>;
}
Expand description
Defines a conversion between two parse error types.
Like ParseError::into_other
but with a more general signature
(This will take the place of into_other
on breaking release of combine)
Required Methods§
fn into_other_error<T, Item2, Range2, Position2>(self) -> Twhere
T: ParseError<Item2, Range2, Position2>,
Item2: From<Item>,
Range2: From<Range>,
Position2: From<Position>,
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.