pub enum NativeEvalError {
Show 13 variants
EmptyFunction {
name: String,
},
MissingFunction {
name: String,
},
MissingBlock {
id: BlockId,
},
BlockArgumentMismatch {
id: BlockId,
expected: usize,
actual: usize,
},
MissingValue {
id: ValueId,
},
ExpectedPlainValue {
id: ValueId,
},
ExpectedClosure {
id: ValueId,
},
ExpectedRecord {
value: VmValue,
},
ExpectedTuple {
value: VmValue,
},
ExpectedVariant {
value: VmValue,
},
UnsupportedPrimitive {
op: PrimitiveOp,
},
PrimitiveTypeMismatch {
op: PrimitiveOp,
value: VmValue,
},
InvalidPrimitiveArity {
op: PrimitiveOp,
expected: usize,
actual: usize,
},
}Variants§
EmptyFunction
MissingFunction
MissingBlock
BlockArgumentMismatch
MissingValue
ExpectedPlainValue
ExpectedClosure
ExpectedRecord
ExpectedTuple
ExpectedVariant
UnsupportedPrimitive
Fields
§
op: PrimitiveOpPrimitiveTypeMismatch
InvalidPrimitiveArity
Trait Implementations§
Source§impl Clone for NativeEvalError
impl Clone for NativeEvalError
Source§fn clone(&self) -> NativeEvalError
fn clone(&self) -> NativeEvalError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NativeEvalError
impl Debug for NativeEvalError
Source§impl Display for NativeEvalError
impl Display for NativeEvalError
Source§impl Error for NativeEvalError
impl Error for NativeEvalError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<NativeEvalError> for NativeAbiEvalError
impl From<NativeEvalError> for NativeAbiEvalError
Source§fn from(error: NativeEvalError) -> Self
fn from(error: NativeEvalError) -> Self
Converts to this type from the input type.
Source§impl From<NativeEvalError> for NativeCompareError
impl From<NativeEvalError> for NativeCompareError
Source§fn from(value: NativeEvalError) -> Self
fn from(value: NativeEvalError) -> Self
Converts to this type from the input type.
Source§impl From<NativeEvalError> for NativeSourceCompareError
impl From<NativeEvalError> for NativeSourceCompareError
Source§fn from(error: NativeEvalError) -> Self
fn from(error: NativeEvalError) -> Self
Converts to this type from the input type.
Source§impl From<NativeEvalError> for NativeValueCompareError
impl From<NativeEvalError> for NativeValueCompareError
Source§fn from(error: NativeEvalError) -> Self
fn from(error: NativeEvalError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NativeEvalError
impl PartialEq for NativeEvalError
Source§fn eq(&self, other: &NativeEvalError) -> bool
fn eq(&self, other: &NativeEvalError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NativeEvalError
Auto Trait Implementations§
impl Freeze for NativeEvalError
impl RefUnwindSafe for NativeEvalError
impl !Send for NativeEvalError
impl !Sync for NativeEvalError
impl Unpin for NativeEvalError
impl UnsafeUnpin for NativeEvalError
impl UnwindSafe for NativeEvalError
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