pub trait ErrorConvert<E> {
// Required method
fn convert(self) -> E;
}Expand description
Equivalent of From implementation to avoid orphan rules in bits parsers
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
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
binary and std 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
binary and std only.