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;
}
Available on crate feature unstable-recover only.
Expand description

Capture context from when an error was recovered

Required Methods§

source

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 ()

source§

fn from_recoverable_error( _token_start: &<I as Stream>::Checkpoint, _err_start: &<I as Stream>::Checkpoint, _input: &I, (): Self ) -> Self

Implementors§

source§

impl<I: Stream + Clone, C> FromRecoverableError<I, TreeError<I, C>> for TreeError<I, C>

Available on crate feature std only.
source§

impl<I: Stream, C> FromRecoverableError<I, ContextError<C>> for ContextError<C>

source§

impl<I: Clone + Stream> FromRecoverableError<I, InputError<I>> for InputError<I>