pub enum EvalError {
Show 13 variants
GenericError(String),
VariableNotDefined(String),
FunctionWrongArgAmount {
name: Option<String>,
expected: usize,
got: usize,
},
DuplicateArgName {
func_name: Option<String>,
arg_name: String,
},
WrongType {
expected: Type,
got: Type,
},
NoSuchMember {
type: Type,
member_name: String,
},
IndexOutOfBounds {
index: usize,
length: usize,
},
TypeError(String),
CallStackOverflow,
ContinueOutsideOfLoop,
BreakOutsideOfLoop,
InternalControlFlow(ControlFlow),
Io(Error),
}Variants§
GenericError(String)
VariableNotDefined(String)
FunctionWrongArgAmount
DuplicateArgName
WrongType
NoSuchMember
IndexOutOfBounds
TypeError(String)
CallStackOverflow
ContinueOutsideOfLoop
BreakOutsideOfLoop
InternalControlFlow(ControlFlow)
Io(Error)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EvalError
impl !RefUnwindSafe for EvalError
impl !Send for EvalError
impl !Sync for EvalError
impl Unpin for EvalError
impl !UnwindSafe for EvalError
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