winnow::error

Trait 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;
}
Available on crate features unstable-recover and std 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

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.

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§