Trait ReplaceableParseError

Source
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§

Required Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl<F, T> ReplaceableParseError<F, T> for (T, ErrorKind)

Source§

type From = (F, ErrorKind)

Source§

fn replace_input(from: Self::From, input: T) -> Self

Source§

impl<F, T> ReplaceableParseError<F, T> for ()

Source§

type From = ()

Source§

fn replace_input((): Self::From, _: T) -> Self

Source§

impl<F, T: Clone> ReplaceableParseError<F, T> for VerboseError<T>

Source§

type From = VerboseError<F>

Source§

fn replace_input(from: Self::From, input: T) -> Self

Implementors§