pub enum SemanticError {
TypeMismatch {
expected: Type,
found: Type,
},
UndefinedVariable(String),
UndefinedStruct(String),
UndefinedField {
struct_name: String,
field: String,
},
UndefinedFunction(String),
ReturnTypeMismatch {
function: String,
expected: Type,
found: Type,
},
ArgCountMismatch {
function: String,
expected: usize,
found: usize,
},
ArgTypeMismatch {
function: String,
param_index: usize,
expected: Type,
found: Type,
},
PropagateOnNonTrit {
found: Type,
},
}Variants§
TypeMismatch
UndefinedVariable(String)
UndefinedStruct(String)
UndefinedField
UndefinedFunction(String)
ReturnTypeMismatch
ArgCountMismatch
ArgTypeMismatch
PropagateOnNonTrit
? used on an expression that doesn’t return trit
Trait Implementations§
Source§impl Debug for SemanticError
impl Debug for SemanticError
Auto Trait Implementations§
impl Freeze for SemanticError
impl RefUnwindSafe for SemanticError
impl Send for SemanticError
impl Sync for SemanticError
impl Unpin for SemanticError
impl UnsafeUnpin for SemanticError
impl UnwindSafe for SemanticError
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