Trait nom::ErrorConvert
source · pub trait ErrorConvert<E> {
fn convert(self) -> E;
}
Expand description
Equivalent From implementation to avoid orphan rules in bits parsers
Required Methods§
Implementations on Foreign Types§
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>
Available on crate feature
alloc
only.impl<I> ErrorConvert<VerboseError<I>> for VerboseError<(I, usize)>
Available on crate feature
alloc
only.