#[repr(u32)]pub enum UnsafeIntrinsic {
StoreDataAddress = 0,
U8NativeLoad = 1,
U8NativeStore = 2,
U16NativeLoad = 3,
U16NativeStore = 4,
U32NativeLoad = 5,
U32NativeStore = 6,
U64NativeLoad = 7,
U64NativeStore = 8,
}
Expand description
An index type for Wasmtime’s intrinsics available to compile-time builtins.
Variants§
StoreDataAddress = 0
The store-data-address
intrinsic.
U8NativeLoad = 1
The u8-native-load
intrinsic.
U8NativeStore = 2
The u8-native-store
intrinsic.
U16NativeLoad = 3
The u16-native-load
intrinsic.
U16NativeStore = 4
The u16-native-store
intrinsic.
U32NativeLoad = 5
The u32-native-load
intrinsic.
U32NativeStore = 6
The u32-native-store
intrinsic.
U64NativeLoad = 7
The u64-native-load
intrinsic.
U64NativeStore = 8
The u64-native-store
intrinsic.
Implementations§
Source§impl UnsafeIntrinsic
impl UnsafeIntrinsic
Sourcepub const fn from_u32(i: u32) -> Self
pub const fn from_u32(i: u32) -> Self
Construct an UnsafeIntrinsic
from its u32
index.
Panics on invalid indices.
Sourcepub const fn core_params(&self) -> &'static [WasmValType]
pub const fn core_params(&self) -> &'static [WasmValType]
Get this intrinsic’s parameters, as core Wasm value types.
Sourcepub const fn core_results(&self) -> &'static [WasmValType]
pub const fn core_results(&self) -> &'static [WasmValType]
Get this intrinsic’s results, as core Wasm value types.
Sourcepub const fn component_params(&self) -> &'static [InterfaceType]
pub const fn component_params(&self) -> &'static [InterfaceType]
Get this intrinsic’s parameters, as component model interface types.
Sourcepub const fn component_results(&self) -> &'static [InterfaceType]
pub const fn component_results(&self) -> &'static [InterfaceType]
Get this intrinsic’s results, as component model interface types.
Trait Implementations§
Source§impl Clone for UnsafeIntrinsic
impl Clone for UnsafeIntrinsic
Source§fn clone(&self) -> UnsafeIntrinsic
fn clone(&self) -> UnsafeIntrinsic
Returns a duplicate of the value. Read more
1.0.0 · 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 UnsafeIntrinsic
impl Debug for UnsafeIntrinsic
Source§impl<'de> Deserialize<'de> for UnsafeIntrinsic
impl<'de> Deserialize<'de> for UnsafeIntrinsic
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for UnsafeIntrinsic
impl FromStr for UnsafeIntrinsic
Source§impl Hash for UnsafeIntrinsic
impl Hash for UnsafeIntrinsic
Source§impl Ord for UnsafeIntrinsic
impl Ord for UnsafeIntrinsic
Source§fn cmp(&self, other: &UnsafeIntrinsic) -> Ordering
fn cmp(&self, other: &UnsafeIntrinsic) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UnsafeIntrinsic
impl PartialEq for UnsafeIntrinsic
Source§impl PartialOrd for UnsafeIntrinsic
impl PartialOrd for UnsafeIntrinsic
Source§impl Serialize for UnsafeIntrinsic
impl Serialize for UnsafeIntrinsic
impl Copy for UnsafeIntrinsic
impl Eq for UnsafeIntrinsic
impl StructuralPartialEq for UnsafeIntrinsic
Auto Trait Implementations§
impl Freeze for UnsafeIntrinsic
impl RefUnwindSafe for UnsafeIntrinsic
impl Send for UnsafeIntrinsic
impl Sync for UnsafeIntrinsic
impl Unpin for UnsafeIntrinsic
impl UnwindSafe for UnsafeIntrinsic
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.