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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 for GreedyErrorKind<E>
impl<E: PartialEq> PartialEq for GreedyErrorKind<E>
impl<E> StructuralPartialEq for GreedyErrorKind<E>
Auto Trait Implementations§
impl<E> Freeze for GreedyErrorKind<E>where
E: Freeze,
impl<E> RefUnwindSafe for GreedyErrorKind<E>where
E: RefUnwindSafe,
impl<E> Send for GreedyErrorKind<E>where
E: Send,
impl<E> Sync for GreedyErrorKind<E>where
E: Sync,
impl<E> Unpin for GreedyErrorKind<E>where
E: Unpin,
impl<E> UnwindSafe for GreedyErrorKind<E>where
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more