Trait ErrorConvert

pub trait ErrorConvert<E> {
    // Required method
    fn convert(self) -> E;
}
Available on crate feature dep_winnow only.
Expand description

Equivalent of From implementation to avoid orphan rules in bits parsers

Required Methods§

fn convert(self) -> E

Transform to another error type

Implementations on Foreign Types§

§

impl ErrorConvert<()> for ()

§

fn convert(self)

Implementors§

§

impl ErrorConvert<EmptyError> for EmptyError

§

impl<C> ErrorConvert<ContextError<C>> for ContextError<C>

§

impl<E1, E2> ErrorConvert<ErrMode<E2>> for ErrMode<E1>
where E1: ErrorConvert<E2>,

§

impl<I> ErrorConvert<InputError<(I, usize)>> for InputError<I>
where I: Clone,

§

impl<I> ErrorConvert<InputError<I>> for InputError<(I, usize)>
where I: Clone,

§

impl<I, C> ErrorConvert<TreeError<(I, usize), C>> for TreeError<I, C>

§

impl<I, C> ErrorConvert<TreeError<I, C>> for TreeError<(I, usize), C>