pub struct KnownEntity<T> {
pub module: StaticModuleIndex,
pub index: T,
}Expand description
A statically-known import of a core Wasm global, memory, or table.
Fields§
§module: StaticModuleIndexThe module that defines this entity.
index: TThe entity’s index in the defining module’s defined-entity index space.
Trait Implementations§
Source§impl<T: Clone> Clone for KnownEntity<T>
impl<T: Clone> Clone for KnownEntity<T>
impl<T: Copy> Copy for KnownEntity<T>
Source§impl<T: Debug> Debug for KnownEntity<T>
impl<T: Debug> Debug for KnownEntity<T>
impl<T: Eq> Eq for KnownEntity<T>
Source§impl<T: Hash> Hash for KnownEntity<T>
impl<T: Hash> Hash for KnownEntity<T>
Source§impl<T: PartialEq> PartialEq for KnownEntity<T>
impl<T: PartialEq> PartialEq for KnownEntity<T>
impl<T: PartialEq> StructuralPartialEq for KnownEntity<T>
Auto Trait Implementations§
impl<T> Freeze for KnownEntity<T>where
T: Freeze,
impl<T> RefUnwindSafe for KnownEntity<T>where
T: RefUnwindSafe,
impl<T> Send for KnownEntity<T>where
T: Send,
impl<T> Sync for KnownEntity<T>where
T: Sync,
impl<T> Unpin for KnownEntity<T>where
T: Unpin,
impl<T> UnsafeUnpin for KnownEntity<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for KnownEntity<T>where
T: UnwindSafe,
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> 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.§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