pub trait ErrorConvert<E> {
// Required method
fn convert(self) -> E;
}Available on crate feature
parser only.Expand description
Equivalent of From implementation to avoid orphan rules in bits parsers
Required Methods§
Implementations on Foreign Types§
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, C> ErrorConvert<TreeError<(I, usize), C>> for TreeError<I, C>
Available on crate feature
std only.deprecated since 1.0.2
impl<I, C> ErrorConvert<TreeError<Bits<I>, C>> for TreeError<I, C>
Available on crate features
std and binary only.impl<I, C> ErrorConvert<TreeError<I, C>> for TreeError<(I, usize), C>
Available on crate feature
std only.deprecated since 1.0.2
impl<I, C> ErrorConvert<TreeError<I, C>> for TreeError<Bits<I>, C>
Available on crate features
std and binary only.impl<I: Clone> ErrorConvert<InputError<Bits<I>>> for InputError<I>
Available on crate feature
binary only.impl<I: Clone> ErrorConvert<InputError<I>> for InputError<Bits<I>>
Available on crate feature
binary only.