pub struct PassiveDataIndex(/* private fields */);Expand description
Index type of a passive data segment inside the WebAssembly module.
Not a spec-level concept, just used to get dense index spaces for passive data segments inside of Wasmtime.
Implementations§
Source§impl PassiveDataIndex
impl PassiveDataIndex
Sourcepub fn as_bits(self) -> u32
pub fn as_bits(self) -> u32
Return the raw bit encoding for this instance.
Warning: the raw bit encoding is opaque and has no
guaranteed correspondence to the entity’s index. It encodes the
entire state of this index value: either a valid index or an
invalid-index sentinel. The value returned by this method should
only be passed to from_bits.
Sourcepub fn from_bits(x: u32) -> Self
pub fn from_bits(x: u32) -> Self
Create a new instance from the raw bit encoding.
Warning: the raw bit encoding is opaque and has no
guaranteed correspondence to the entity’s index. It encodes the
entire state of this index value: either a valid index or an
invalid-index sentinel. The value returned by this method should
only be given bits from as_bits.
Trait Implementations§
Source§impl Clone for PassiveDataIndex
impl Clone for PassiveDataIndex
Source§fn clone(&self) -> PassiveDataIndex
fn clone(&self) -> PassiveDataIndex
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PassiveDataIndex
impl Debug for PassiveDataIndex
Source§impl<'de> Deserialize<'de> for PassiveDataIndex
impl<'de> Deserialize<'de> for PassiveDataIndex
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>,
Source§impl EntityRef for PassiveDataIndex
impl EntityRef for PassiveDataIndex
Source§impl Hash for PassiveDataIndex
impl Hash for PassiveDataIndex
Source§impl Ord for PassiveDataIndex
impl Ord for PassiveDataIndex
Source§fn cmp(&self, other: &PassiveDataIndex) -> Ordering
fn cmp(&self, other: &PassiveDataIndex) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for PassiveDataIndex
impl PartialEq for PassiveDataIndex
Source§impl PartialOrd for PassiveDataIndex
impl PartialOrd for PassiveDataIndex
Source§impl ReservedValue for PassiveDataIndex
impl ReservedValue for PassiveDataIndex
Source§fn reserved_value() -> PassiveDataIndex
fn reserved_value() -> PassiveDataIndex
Source§fn is_reserved_value(&self) -> bool
fn is_reserved_value(&self) -> bool
Source§impl Serialize for PassiveDataIndex
impl Serialize for PassiveDataIndex
Source§impl TryClone for PassiveDataIndex
impl TryClone for PassiveDataIndex
Source§fn try_clone(&self) -> Result<Self, OutOfMemory>
fn try_clone(&self) -> Result<Self, OutOfMemory>
self, returning an error if any allocation fails
during cloning.§fn clone_panic_on_oom(&self) -> Self
fn clone_panic_on_oom(&self) -> Self
self, panicking on allocation failure.impl Copy for PassiveDataIndex
impl Eq for PassiveDataIndex
impl StructuralPartialEq for PassiveDataIndex
Auto Trait Implementations§
impl Freeze for PassiveDataIndex
impl RefUnwindSafe for PassiveDataIndex
impl Send for PassiveDataIndex
impl Sync for PassiveDataIndex
impl Unpin for PassiveDataIndex
impl UnsafeUnpin for PassiveDataIndex
impl UnwindSafe for PassiveDataIndex
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
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
§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
key and return true if they are equal.§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
§impl<T> SparseMapValue<T> for Twhere
T: EntityRef,
impl<T> SparseMapValue<T> for Twhere
T: EntityRef,
§impl<T> TryToOwned for Twhere
T: TryClone,
impl<T> TryToOwned for Twhere
T: TryClone,
§fn try_to_owned(&self) -> Result<<T as TryToOwned>::Owned, OutOfMemory>
fn try_to_owned(&self) -> Result<<T as TryToOwned>::Owned, OutOfMemory>
self.