pub enum ErrKind {
CannotCast,
CannotCastTo(&'static str),
InvalidOpForBools(BinOp_),
InvalidOpForFloats(BinOp_),
InvalidOpForIntUint(BinOp_),
InvalidOpForUintInt(BinOp_),
NegateOnString,
NegateOnBoolean,
NegateOnBinary,
NegateOnStruct,
NegateOnTuple,
NotOnFloat,
NotOnString,
NotOnBinary,
NotOnStruct,
NotOnTuple,
NegateWithOverflow(i64),
AddiWithOverflow(i64, i64),
SubiWithOverflow(i64, i64),
MuliWithOverflow(i64, i64),
AdduWithOverflow(u64, u64),
SubuWithOverflow(u64, u64),
MuluWithOverflow(u64, u64),
DivideByZero,
DivideWithOverflow,
ModuloByZero,
ModuloWithOverflow,
ShiftLeftWithOverflow,
ShiftRightWithOverflow,
MissingStructField,
NonConstPath,
ExpectedConstTuple,
ExpectedConstStruct,
TupleIndexOutOfBounds,
MiscBinaryOp,
MiscCatchAll,
}
Variants
CannotCast | |
CannotCastTo | |
InvalidOpForBools | |
InvalidOpForFloats | |
InvalidOpForIntUint | |
InvalidOpForUintInt | |
NegateOnString | |
NegateOnBoolean | |
NegateOnBinary | |
NegateOnStruct | |
NegateOnTuple | |
NotOnFloat | |
NotOnString | |
NotOnBinary | |
NotOnStruct | |
NotOnTuple | |
NegateWithOverflow | |
AddiWithOverflow | |
SubiWithOverflow | |
MuliWithOverflow | |
AdduWithOverflow | |
SubuWithOverflow | |
MuluWithOverflow | |
DivideByZero | |
DivideWithOverflow | |
ModuloByZero | |
ModuloWithOverflow | |
ShiftLeftWithOverflow | |
ShiftRightWithOverflow | |
MissingStructField | |
NonConstPath | |
ExpectedConstTuple | |
ExpectedConstStruct | |
TupleIndexOutOfBounds | |
MiscBinaryOp | |
MiscCatchAll | |
Trait Implementations
Derived Implementations