pub enum ErrorKind {
Show 14 variants
InvalidUnaryOperand(Type),
InvalidBinaryOperand(Type, Type),
OverflowError,
DivideByZero,
NegativeShiftCount,
NameNotDefined(String),
CantAssignImmutable,
UnhashableValue(Variant),
MissingArguments {
signature: Box<Signature>,
nargs: usize,
},
TooManyArguments {
signature: Box<Signature>,
nargs: usize,
},
MethodNotSupported(Type, MethodTag),
AssertFailed,
StaticMessage(&'static str),
Message(String),
}
Variants
InvalidUnaryOperand(Type)
InvalidBinaryOperand(Type, Type)
OverflowError
DivideByZero
NegativeShiftCount
NameNotDefined(String)
CantAssignImmutable
UnhashableValue(Variant)
MissingArguments
TooManyArguments
MethodNotSupported(Type, MethodTag)
AssertFailed
StaticMessage(&'static str)
Message(String)
Trait Implementations
sourceimpl From<ErrorKind> for RuntimeError
impl From<ErrorKind> for RuntimeError
sourceimpl From<ErrorKind> for Box<RuntimeError>
impl From<ErrorKind> for Box<RuntimeError>
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKind
impl !Send for ErrorKind
impl !Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more