pub struct WasmValueNativeCastError {
pub from: IValue,
pub to: IType,
}
Expand description
Structure to represent errors when casting from an IType
to a native value.
Fields§
§from: IValue
The initial type.
to: IType
The targeted type.
IType
is used to represent the native type by
associativity.
Trait Implementations§
source§impl Debug for WasmValueNativeCastError
impl Debug for WasmValueNativeCastError
source§impl Display for WasmValueNativeCastError
impl Display for WasmValueNativeCastError
source§impl Error for WasmValueNativeCastError
impl Error for WasmValueNativeCastError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<WasmValueNativeCastError> for InstructionErrorKind
impl From<WasmValueNativeCastError> for InstructionErrorKind
source§fn from(source: WasmValueNativeCastError) -> Self
fn from(source: WasmValueNativeCastError) -> Self
Converts to this type from the input type.