Trait kparse::ErrOrNomErr
source · pub trait ErrOrNomErr {
type WrappedError: Debug;
// Required method
fn wrap(self) -> Err<Self::WrappedError>;
}
Expand description
This trait is used for Track.err() where the function wants to accept both
E
and nom::Err<E>
.
Required Associated Types§
sourcetype WrappedError: Debug
type WrappedError: Debug
The base error type.
Required Methods§
sourcefn wrap(self) -> Err<Self::WrappedError>
fn wrap(self) -> Err<Self::WrappedError>
Converts self to a nom::Err
wrapped error.