Enum nom_greedyerror::GreedyErrorKind
source · pub enum GreedyErrorKind<E> {
Context(&'static str),
Char(char),
Nom(E),
}
Expand description
error context for GreedyError
Variants§
Context(&'static str)
static string added by the context
function
Char(char)
indicates which character was expected by the char
function
Nom(E)
error kind given by various nom parsers
Trait Implementations§
source§impl<E: Clone> Clone for GreedyErrorKind<E>
impl<E: Clone> Clone for GreedyErrorKind<E>
source§fn clone(&self) -> GreedyErrorKind<E>
fn clone(&self) -> GreedyErrorKind<E>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<E: Debug> Debug for GreedyErrorKind<E>
impl<E: Debug> Debug for GreedyErrorKind<E>
source§impl<E: PartialEq> PartialEq<GreedyErrorKind<E>> for GreedyErrorKind<E>
impl<E: PartialEq> PartialEq<GreedyErrorKind<E>> for GreedyErrorKind<E>
source§fn eq(&self, other: &GreedyErrorKind<E>) -> bool
fn eq(&self, other: &GreedyErrorKind<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.