Struct wasmer_types::entity::ArchivedPrimaryMap
source · #[repr(C)]pub struct ArchivedPrimaryMap<K, V>{
pub(crate) elems: <Vec<V> as Archive>::Archived,
pub(crate) unused: <PhantomData<K> as Archive>::Archived,
}
Expand description
An archived PrimaryMap
Fields§
§elems: <Vec<V> as Archive>::Archived
§unused: <PhantomData<K> as Archive>::Archived
Implementations§
source§impl<K, V> ArchivedPrimaryMap<K, V>where
K: EntityRef,
V: Archive,
impl<K, V> ArchivedPrimaryMap<K, V>where
K: EntityRef,
V: Archive,
source§impl<K, V> ArchivedPrimaryMap<K, V>
impl<K, V> ArchivedPrimaryMap<K, V>
Trait Implementations§
source§impl<K, V, __C: Fallible + ?Sized> CheckBytes<__C> for ArchivedPrimaryMap<K, V>where
K: EntityRef,
Vec<V>: Archive,
PhantomData<K>: Archive,
<__C as Fallible>::Error: Trace,
<Vec<V> as Archive>::Archived: CheckBytes<__C>,
<PhantomData<K> as Archive>::Archived: CheckBytes<__C>,
impl<K, V, __C: Fallible + ?Sized> CheckBytes<__C> for ArchivedPrimaryMap<K, V>where
K: EntityRef,
Vec<V>: Archive,
PhantomData<K>: Archive,
<__C as Fallible>::Error: Trace,
<Vec<V> as Archive>::Archived: CheckBytes<__C>,
<PhantomData<K> as Archive>::Archived: CheckBytes<__C>,
source§unsafe fn check_bytes(
value: *const Self,
context: &mut __C,
) -> Result<(), <__C as Fallible>::Error>
unsafe fn check_bytes( value: *const Self, context: &mut __C, ) -> Result<(), <__C as Fallible>::Error>
Checks whether the given pointer points to a valid value within the
given context. Read more
source§impl<K, V> Debug for ArchivedPrimaryMap<K, V>
impl<K, V> Debug for ArchivedPrimaryMap<K, V>
source§impl<K, V> Index<K> for ArchivedPrimaryMap<K, V>
impl<K, V> Index<K> for ArchivedPrimaryMap<K, V>
Immutable indexing into an ArchivedPrimaryMap
.
The indexed value must be in the map.
impl<K, V> Portable for ArchivedPrimaryMap<K, V>where
K: EntityRef,
Vec<V>: Archive,
PhantomData<K>: Archive,
<Vec<V> as Archive>::Archived: Portable,
<PhantomData<K> as Archive>::Archived: Portable,
Auto Trait Implementations§
impl<K, V> !Freeze for ArchivedPrimaryMap<K, V>
impl<K, V> !RefUnwindSafe for ArchivedPrimaryMap<K, V>
impl<K, V> !Send for ArchivedPrimaryMap<K, V>
impl<K, V> !Sync for ArchivedPrimaryMap<K, V>
impl<K, V> !Unpin for ArchivedPrimaryMap<K, V>
impl<K, V> !UnwindSafe for ArchivedPrimaryMap<K, V>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.