pub enum ParserError {
UnbalancedEmpty(Position, GroupKind),
UnbalancedMismatch {
span: Span,
expected: GroupKind,
got: GroupKind,
},
UnfinishedGroup(GroupKind),
TokenizerError(TokenError),
}
Expand description
Parser Error, which are either token error or some error related to group balancing like unterminated group, or mismatch of group
Variants§
UnbalancedEmpty(Position, GroupKind)
UnbalancedMismatch
UnfinishedGroup(GroupKind)
TokenizerError(TokenError)
Trait Implementations§
Source§impl Clone for ParserError
impl Clone for ParserError
Source§fn clone(&self) -> ParserError
fn clone(&self) -> ParserError
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 Debug for ParserError
impl Debug for ParserError
Source§impl From<TokenError> for ParserError
impl From<TokenError> for ParserError
Source§fn from(t: TokenError) -> ParserError
fn from(t: TokenError) -> ParserError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParserError
impl RefUnwindSafe for ParserError
impl Send for ParserError
impl Sync for ParserError
impl Unpin for ParserError
impl UnwindSafe for ParserError
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