devela::_dep::winnow::error

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<C> ErrorConvert<ContextError<C>> for ContextError<C>

§

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

§

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