pub enum Error<'s> {
UnknwonToken(Token<'s>),
UnexpectedToken(Token<'s>),
InvalidNumber(Span, &'s str, String),
UndefinedVariable(&'s str),
Unary(Op, Expr<'s>),
Binary(Op, Expr<'s>, Expr<'s>),
ExpectedFunction(Value<'s>),
}
Variants§
UnknwonToken(Token<'s>)
UnexpectedToken(Token<'s>)
InvalidNumber(Span, &'s str, String)
UndefinedVariable(&'s str)
Unary(Op, Expr<'s>)
Binary(Op, Expr<'s>, Expr<'s>)
ExpectedFunction(Value<'s>)
Trait Implementations§
Auto Trait Implementations§
impl<'s> Freeze for Err<'s>
impl<'s> RefUnwindSafe for Err<'s>
impl<'s> Send for Err<'s>
impl<'s> Sync for Err<'s>
impl<'s> Unpin for Err<'s>
impl<'s> UnwindSafe for Err<'s>
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