pub enum EvalError {
Show 28 variants
BlankResult,
EnvironmentHasDropped,
LetStatementValueIsNone,
EvaluationOfExpressionIsNone(Expression),
LeftExpressionIsNone,
RightExpressionIsNone,
NotABoolean(Object),
NotAFunction(Object),
ConditionIsNone,
FunctionIsNone,
ElementIsNone,
ArrayIsNone,
IdentifierNotFound(String),
NotSameType,
NotArray,
IndexIsNotAInt(Object),
IndexIsNegative(Object),
IndexOutOfRange(IndexErrorDetail),
FunctionArgLengthNotMatched(ArgumentsLength),
DivideWithZero,
InvalidPrefixOperationTarget(ObjectType, Kind),
InvalidInfixOperationTarget(ObjectType, Kind),
InvalidStringInfixOperation(Kind),
InvalidIntegerInfixOperation(Kind),
InvalidIntegerPrefixOperation(Kind),
InvalidBoolInfixOperation(Kind),
InvalidBoolPrefixOperation(Kind),
MemoryError(ImmixError),
}Variants§
BlankResult
EnvironmentHasDropped
LetStatementValueIsNone
EvaluationOfExpressionIsNone(Expression)
LeftExpressionIsNone
RightExpressionIsNone
NotABoolean(Object)
NotAFunction(Object)
ConditionIsNone
FunctionIsNone
ElementIsNone
ArrayIsNone
IdentifierNotFound(String)
NotSameType
NotArray
IndexIsNotAInt(Object)
IndexIsNegative(Object)
IndexOutOfRange(IndexErrorDetail)
FunctionArgLengthNotMatched(ArgumentsLength)
DivideWithZero
InvalidPrefixOperationTarget(ObjectType, Kind)
InvalidInfixOperationTarget(ObjectType, Kind)
InvalidStringInfixOperation(Kind)
InvalidIntegerInfixOperation(Kind)
InvalidIntegerPrefixOperation(Kind)
InvalidBoolInfixOperation(Kind)
InvalidBoolPrefixOperation(Kind)
MemoryError(ImmixError)
Trait Implementations§
source§impl From<ImmixError> for EvalError
impl From<ImmixError> for EvalError
source§fn from(value: ImmixError) -> Self
fn from(value: ImmixError) -> Self
Converts to this type from the input type.
source§impl PartialEq for EvalError
impl PartialEq for EvalError
impl StructuralPartialEq for EvalError
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