Enum astray::ExpectError
source · pub enum ExpectError<T>where
T: Expectable<T>,{
NoMoreTokens {
failed_at: usize,
could_not_consume: T,
},
ExpectedNotFound {
failed_at: usize,
expected: T,
found: T,
},
}Variants§
Trait Implementations§
source§impl<T> Clone for ExpectError<T>where
T: Clone + Expectable<T>,
impl<T> Clone for ExpectError<T>where T: Clone + Expectable<T>,
source§fn clone(&self) -> ExpectError<T>
fn clone(&self) -> ExpectError<T>
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<T> Debug for ExpectError<T>where
T: Debug + Expectable<T>,
impl<T> Debug for ExpectError<T>where T: Debug + Expectable<T>,
source§impl<T> From<ExpectError<T>> for ParseError<T>where
T: Expectable<T>,
impl<T> From<ExpectError<T>> for ParseError<T>where T: Expectable<T>,
source§fn from(expect_error: ExpectError<T>) -> ParseError<T>
fn from(expect_error: ExpectError<T>) -> ParseError<T>
Converts to this type from the input type.
source§impl<T> PartialEq<ExpectError<T>> for ExpectError<T>where
T: PartialEq<T> + Expectable<T>,
impl<T> PartialEq<ExpectError<T>> for ExpectError<T>where T: PartialEq<T> + Expectable<T>,
source§fn eq(&self, other: &ExpectError<T>) -> bool
fn eq(&self, other: &ExpectError<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.