Struct wasmtime_environ::wasmparser::PackedIndex
source · #[repr(packed(1))]pub struct PackedIndex(/* private fields */);
Expand description
Used as a performance optimization in HeapType. Call .into()
to get the u32
Trait Implementations§
source§impl Clone for PackedIndex
impl Clone for PackedIndex
source§fn clone(&self) -> PackedIndex
fn clone(&self) -> PackedIndex
Returns a copy 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 PackedIndex
impl Debug for PackedIndex
source§impl From<PackedIndex> for u32
impl From<PackedIndex> for u32
source§fn from(x: PackedIndex) -> u32
fn from(x: PackedIndex) -> u32
Converts to this type from the input type.
source§impl Hash for PackedIndex
impl Hash for PackedIndex
source§impl PartialEq for PackedIndex
impl PartialEq for PackedIndex
source§fn eq(&self, other: &PackedIndex) -> bool
fn eq(&self, other: &PackedIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u32> for PackedIndex
impl TryFrom<u32> for PackedIndex
impl Copy for PackedIndex
impl Eq for PackedIndex
impl StructuralPartialEq for PackedIndex
Auto Trait Implementations§
impl Freeze for PackedIndex
impl RefUnwindSafe for PackedIndex
impl Send for PackedIndex
impl Sync for PackedIndex
impl Unpin for PackedIndex
impl UnwindSafe for PackedIndex
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.