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

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

§

impl<I> ErrorConvert<((I, usize), ErrorKind)> for (I, ErrorKind)

§

fn convert(self) -> ((I, usize), ErrorKind)

§

impl<I> ErrorConvert<(I, ErrorKind)> for ((I, usize), ErrorKind)

§

fn convert(self) -> (I, ErrorKind)

Implementors§

§

impl<I> ErrorConvert<Error<(I, usize)>> for Error<I>

§

impl<I> ErrorConvert<Error<I>> for Error<(I, usize)>

§

impl<I> ErrorConvert<VerboseError<(I, usize)>> for VerboseError<I>

§

impl<I> ErrorConvert<VerboseError<I>> for VerboseError<(I, usize)>