pub enum ExecutionError {
UndefinedVariable {
name: String,
location: SourceLocation,
},
UndefinedFunction {
name: String,
location: SourceLocation,
},
TypeError {
expected: String,
found: String,
location: SourceLocation,
},
DivisionByZero {
location: SourceLocation,
},
InvalidOperation {
operation: String,
message: String,
location: SourceLocation,
},
ArgumentCountMismatch {
expected: usize,
found: usize,
location: SourceLocation,
},
StackOverflow {
location: SourceLocation,
},
}Expand description
Execution errors
Variants§
UndefinedVariable
UndefinedFunction
TypeError
DivisionByZero
Fields
§
location: SourceLocationInvalidOperation
ArgumentCountMismatch
StackOverflow
Fields
§
location: SourceLocationTrait Implementations§
Source§impl Clone for ExecutionError
impl Clone for ExecutionError
Source§fn clone(&self) -> ExecutionError
fn clone(&self) -> ExecutionError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecutionError
impl Debug for ExecutionError
Source§impl Display for ExecutionError
impl Display for ExecutionError
Source§impl From<ExecutionError> for TcssError
impl From<ExecutionError> for TcssError
Source§fn from(error: ExecutionError) -> Self
fn from(error: ExecutionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExecutionError
impl PartialEq for ExecutionError
impl StructuralPartialEq for ExecutionError
Auto Trait Implementations§
impl Freeze for ExecutionError
impl RefUnwindSafe for ExecutionError
impl Send for ExecutionError
impl Sync for ExecutionError
impl Unpin for ExecutionError
impl UnwindSafe for ExecutionError
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