pub unsafe trait NativeWasmType:
Copy
+ Into<Value>
+ Sized {
const TYPE: Type;
// Required methods
fn from_binary(bits: u64) -> Self;
fn to_binary(self) -> u64;
}Expand description
Represents a native wasm type.
Required Associated Constants§
Required Methods§
Sourcefn from_binary(bits: u64) -> Self
fn from_binary(bits: u64) -> Self
Convert from u64 bites to self.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.