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§
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.impl<I, C> ErrorConvert<TreeError<I, C>> for TreeError<(I, usize), C>
Available on crate feature
std
only.