[][src]Trait nom::ErrorConvert

pub trait ErrorConvert<E> {
    pub fn convert(self) -> E;
}

Equivalent From implementation to avoid orphan rules in bits parsers

Required methods

pub fn convert(self) -> E[src]

Transform to another error type

Loading content...

Implementations on Foreign Types

impl<I> ErrorConvert<(I, ErrorKind)> for ((I, usize), ErrorKind)[src]

impl<I> ErrorConvert<((I, usize), ErrorKind)> for (I, ErrorKind)[src]

Loading content...

Implementors

impl<I> ErrorConvert<Error<(I, usize)>> for Error<I>[src]

impl<I> ErrorConvert<Error<I>> for Error<(I, usize)>[src]

impl<I> ErrorConvert<VerboseError<(I, usize)>> for VerboseError<I>[src]

This is supported on crate feature alloc only.

impl<I> ErrorConvert<VerboseError<I>> for VerboseError<(I, usize)>[src]

This is supported on crate feature alloc only.
Loading content...