pub struct PassiveElemIndex(/* private fields */);Expand description
Dense index space of the subset of element segments that are passive.
Not a spec-level concept, just used to get dense index spaces for passive element segments inside of Wasmtime.
Implementations§
Source§impl PassiveElemIndex
impl PassiveElemIndex
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 PassiveElemIndex
impl Clone for PassiveElemIndex
Source§fn clone(&self) -> PassiveElemIndex
fn clone(&self) -> PassiveElemIndex
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PassiveElemIndex
impl Debug for PassiveElemIndex
Source§impl<'de> Deserialize<'de> for PassiveElemIndex
impl<'de> Deserialize<'de> for PassiveElemIndex
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 PassiveElemIndex
impl EntityRef for PassiveElemIndex
Source§impl Hash for PassiveElemIndex
impl Hash for PassiveElemIndex
Source§impl Ord for PassiveElemIndex
impl Ord for PassiveElemIndex
Source§fn cmp(&self, other: &PassiveElemIndex) -> Ordering
fn cmp(&self, other: &PassiveElemIndex) -> 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 PassiveElemIndex
impl PartialEq for PassiveElemIndex
Source§impl PartialOrd for PassiveElemIndex
impl PartialOrd for PassiveElemIndex
Source§impl ReservedValue for PassiveElemIndex
impl ReservedValue for PassiveElemIndex
Source§fn reserved_value() -> PassiveElemIndex
fn reserved_value() -> PassiveElemIndex
Source§fn is_reserved_value(&self) -> bool
fn is_reserved_value(&self) -> bool
Source§impl Serialize for PassiveElemIndex
impl Serialize for PassiveElemIndex
Source§impl TryClone for PassiveElemIndex
impl TryClone for PassiveElemIndex
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 PassiveElemIndex
impl Eq for PassiveElemIndex
impl StructuralPartialEq for PassiveElemIndex
Auto Trait Implementations§
impl Freeze for PassiveElemIndex
impl RefUnwindSafe for PassiveElemIndex
impl Send for PassiveElemIndex
impl Sync for PassiveElemIndex
impl Unpin for PassiveElemIndex
impl UnwindSafe for PassiveElemIndex
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<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.