Enum boa::syntax::parser::ParseError
source · pub enum ParseError {
Expected(Vec<TokenData>, Token, &'static str),
ExpectedExpr(&'static str, Expr),
UnexpectedKeyword(Keyword),
AbruptEnd,
}
Expand description
ParseError is an enum which represents errors encounted during parsing an expression
Variants
Expected(Vec<TokenData>, Token, &'static str)
When it expected a certain kind of token, but got another as part of something
ExpectedExpr(&'static str, Expr)
When it expected a certain expression, but got another
UnexpectedKeyword(Keyword)
When it didn’t expect this keyword
AbruptEnd
When there is an abrupt end to the parsing
Trait Implementations
sourceimpl Clone for ParseError
impl Clone for ParseError
sourcefn clone(&self) -> ParseError
fn clone(&self) -> ParseError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more