pub enum ParserError {
ExpectedToken {
pos: Position,
token: Token,
},
ExpectedAnyOf {
pos: Position,
tokens: Vec<Token>,
},
UnteriminatedString {
pos: Position,
},
IllegalCharacter {
pos: Position,
},
InvalidPrefixOperator {
token: Token,
pos: Position,
},
InvalidIdent {
ident: String,
pos: Position,
},
InvalidKeywordInScope {
token: Token,
expect_scope: ScopeType,
pos: Position,
},
InvalidAssignedField {
field: String,
component: String,
pos: Position,
},
}
Variants§
ExpectedToken
ExpectedAnyOf
UnteriminatedString
IllegalCharacter
InvalidPrefixOperator
InvalidIdent
InvalidKeywordInScope
InvalidAssignedField
Implementations§
Trait Implementations§
Source§impl Debug for ParserError
impl Debug for ParserError
Source§impl Display for ParserError
impl Display for ParserError
Source§impl Error for ParserError
impl Error for ParserError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for ParserError
impl PartialEq for ParserError
impl StructuralPartialEq for ParserError
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