pub enum TypeError<'a> {
TypeMismatch {
expr: &'a Node<Expression>,
expected: Type,
actual: Type,
filename: String,
},
WrongArgumentCount {
call: &'a Node<Expression>,
expected: usize,
actual: usize,
filename: String,
},
UnsupportedOperator {
expr: &'a Node<Expression>,
op: Op,
type_: Type,
filename: String,
},
InvalidReturnValue {
stmt: &'a Node<Statement>,
filename: String,
},
}
Variants
TypeMismatch
Fields
WrongArgumentCount
Fields
UnsupportedOperator
Fields
InvalidReturnValue
Fields
Trait Implementations
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter.
Formats the value using the given formatter.
The lower-level cause of this error, if any. Read more