Enum astray::ParseErrorType
source · pub enum ParseErrorType<T>where
T: ConsumableToken,{
UnexpectedToken {
expected: T,
found: T,
},
NoMoreTokens,
ParsedButUnmatching {
err_msg: String,
},
ConjunctBranchParsingFailure {
err_source: Box<ParseError<T>, Global>,
},
DisjunctBranchParsingFailure {
err_source: Vec<ParseError<T>, Global>,
},
}Variants§
UnexpectedToken
NoMoreTokens
ParsedButUnmatching
ConjunctBranchParsingFailure
Fields
§
err_source: Box<ParseError<T>, Global>DisjunctBranchParsingFailure
Fields
§
err_source: Vec<ParseError<T>, Global>Trait Implementations§
source§impl<T> Clone for ParseErrorType<T>where
T: Clone + ConsumableToken,
impl<T> Clone for ParseErrorType<T>where T: Clone + ConsumableToken,
source§fn clone(&self) -> ParseErrorType<T>
fn clone(&self) -> ParseErrorType<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 ParseErrorType<T>where
T: Debug + ConsumableToken,
impl<T> Debug for ParseErrorType<T>where T: Debug + ConsumableToken,
source§impl<T> PartialEq<ParseErrorType<T>> for ParseErrorType<T>where
T: PartialEq<T> + ConsumableToken,
impl<T> PartialEq<ParseErrorType<T>> for ParseErrorType<T>where T: PartialEq<T> + ConsumableToken,
source§fn eq(&self, other: &ParseErrorType<T>) -> bool
fn eq(&self, other: &ParseErrorType<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<T> Eq for ParseErrorType<T>where T: Eq + ConsumableToken,
impl<T> StructuralEq for ParseErrorType<T>where T: ConsumableToken,
impl<T> StructuralPartialEq for ParseErrorType<T>where T: ConsumableToken,
Auto Trait Implementations§
impl<T> RefUnwindSafe for ParseErrorType<T>where T: RefUnwindSafe,
impl<T> Send for ParseErrorType<T>where T: Send,
impl<T> Sync for ParseErrorType<T>where T: Sync,
impl<T> Unpin for ParseErrorType<T>where T: Unpin,
impl<T> UnwindSafe for ParseErrorType<T>where T: 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