pub enum ErrorKind {
UnexpectedToken {
expected: &'static [Token],
received: Token,
},
ParseFloatError(ParseFloatError),
ArgumentNumberMismatch {
expected: u32,
received: u32,
},
UnexpectedType {
expected: &'static [Type],
received: Vec<Type>,
},
UndeclaredProc {
name: String,
},
}
Expand description
The type of compilation error.
Variants§
UnexpectedToken
The parser was expecting some set of tokens, but received a unexpected one.
ParseFloatError(ParseFloatError)
The parsing of a number in string format to float has failed.
ArgumentNumberMismatch
There is a mismatch in the number of arguments in a procedure call and a procedure definition.
UnexpectedType
Expected a Type or a pair of Type, but received a unexpected one.
UndeclaredProc
There is a procedure call to a undefined procedure.
Trait Implementations§
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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