Trait winnow::error::FromRecoverableError
source · pub trait FromRecoverableError<I: Stream, E> {
// Required method
fn from_recoverable_error(
token_start: &<I as Stream>::Checkpoint,
err_start: &<I as Stream>::Checkpoint,
input: &I,
e: E,
) -> Self;
}
Expand description
Capture context from when an error was recovered
Required Methods§
sourcefn from_recoverable_error(
token_start: &<I as Stream>::Checkpoint,
err_start: &<I as Stream>::Checkpoint,
input: &I,
e: E,
) -> Self
fn from_recoverable_error( token_start: &<I as Stream>::Checkpoint, err_start: &<I as Stream>::Checkpoint, input: &I, e: E, ) -> Self
Capture context from when an error was recovered
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl<I: Stream> FromRecoverableError<I, ()> for ()
impl<I: Stream> FromRecoverableError<I, ()> for ()
fn from_recoverable_error( _token_start: &<I as Stream>::Checkpoint, _err_start: &<I as Stream>::Checkpoint, _input: &I, (): Self, ) -> Self
Implementors§
impl<I: Stream, C> FromRecoverableError<I, ContextError<C>> for ContextError<C>
impl<I: Clone + Stream> FromRecoverableError<I, InputError<I>> for InputError<I>
impl<I: Clone + Stream, C> FromRecoverableError<I, TreeError<I, C>> for TreeError<I, C>
Available on crate feature
std
only.