pub enum ParseErrorType<T>where
T: ConsumableToken,{
UnexpectedToken {
expected: T,
found: T,
},
NoMoreTokens,
ParsedButUnmatching {
err_msg: String,
},
ConjunctBranchParsingFailure {
err_source: Box<ParseError<T>>,
},
DisjunctBranchParsingFailure {
err_source: Vec<ParseError<T>>,
},
}
Variants§
UnexpectedToken
NoMoreTokens
ParsedButUnmatching
ConjunctBranchParsingFailure
Fields
§
err_source: Box<ParseError<T>>
DisjunctBranchParsingFailure
Fields
§
err_source: Vec<ParseError<T>>
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 duplicate 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 for ParseErrorType<T>where
T: PartialEq + ConsumableToken,
impl<T> PartialEq for ParseErrorType<T>where
T: PartialEq + ConsumableToken,
impl<T> Eq for ParseErrorType<T>where
T: Eq + ConsumableToken,
impl<T> StructuralPartialEq for ParseErrorType<T>where
T: ConsumableToken,
Auto Trait Implementations§
impl<T> Freeze for ParseErrorType<T>where
T: Freeze,
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