Struct wasmer_types::ArchivableIndexMap[][src]

pub struct ArchivableIndexMap<K: Hash + Eq + Archive, V: Archive> { /* fields omitted */ }
Expand description

Rkyv Archivable IndexMap

Trait Implementations

impl<K: Hash + Eq + Archive, V: Archive> Archive for ArchivableIndexMap<K, V> where
    HashMap<K, u64>: Archive,
    Vec<(K, V)>: Archive
[src]

type Archived = ArchivedArchivableIndexMap<K, V>

The archived version of this type.

type Resolver = ArchivableIndexMapResolver<K, V>

The resolver for this type. It must contain all the information needed to make the archived type from the normal type. Read more

fn resolve(
    &self,
    pos: usize,
    resolver: Self::Resolver,
    out: &mut MaybeUninit<Self::Archived>
)
[src]

Creates the archived version of this value at the given position and writes it to the given output. Read more

impl<K: Hash + Eq + Archive + Clone, V: Archive> From<IndexMap<K, V, RandomState>> for ArchivableIndexMap<K, V>[src]

fn from(it: IndexMap<K, V>) -> ArchivableIndexMap<K, V>[src]

Performs the conversion.

impl<K: Hash + Eq + Archive + Clone, V: Archive> Into<IndexMap<K, V, RandomState>> for ArchivableIndexMap<K, V>[src]

fn into(self) -> IndexMap<K, V>[src]

Performs the conversion.

impl<__S: Fallible + ?Sized, K: Hash + Eq + Archive, V: Archive> Serialize<__S> for ArchivableIndexMap<K, V> where
    HashMap<K, u64>: Serialize<__S>,
    Vec<(K, V)>: Serialize<__S>, 
[src]

fn serialize(&self, serializer: &mut __S) -> Result<Self::Resolver, __S::Error>[src]

Writes the dependencies for the object and returns a resolver that can create the archived type. Read more

Auto Trait Implementations

impl<K, V> RefUnwindSafe for ArchivableIndexMap<K, V> where
    K: RefUnwindSafe,
    V: RefUnwindSafe

impl<K, V> Send for ArchivableIndexMap<K, V> where
    K: Send,
    V: Send

impl<K, V> Sync for ArchivableIndexMap<K, V> where
    K: Sync,
    V: Sync

impl<K, V> Unpin for ArchivableIndexMap<K, V> where
    K: Unpin,
    V: Unpin

impl<K, V> UnwindSafe for ArchivableIndexMap<K, V> where
    K: UnwindSafe,
    V: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> ArchivePointee for T[src]

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.

pub fn pointer_metadata(
    &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
[src]

Converts some archived metadata to the pointer metadata for itself.

impl<T> ArchiveUnsized for T where
    T: Archive
[src]

type Archived = <T as Archive>::Archived

The archived counterpart of this type. Unlike Archive, it may be unsized.

type MetadataResolver = ()

The resolver for the metadata of this type.

pub fn resolve_metadata(
    &self,
    usize,
    <T as ArchiveUnsized>::MetadataResolver,
    &mut MaybeUninit<<<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata>
)
[src]

Creates the archived version of the metadata for this value at the given position and writes it to the given output. Read more

fn resolve_unsized(
    &self,
    from: usize,
    to: usize,
    resolver: Self::MetadataResolver,
    out: &mut MaybeUninit<RelPtr<Self::Archived>>
)
[src]

Resolves a relative pointer to this value with the given from and to and writes it to the given output. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointee for T

type Metadata = ()

The type for metadata in pointers and references to Self.

impl<T, S> SerializeUnsized<S> for T where
    T: Serialize<S>,
    S: Serializer + ?Sized
[src]

pub fn serialize_unsized(
    &self,
    serializer: &mut S
) -> Result<usize, <S as Fallible>::Error>
[src]

Writes the object and returns the position of the archived type.

pub fn serialize_metadata(
    &self,
    &mut S
) -> Result<<<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata, <S as Fallible>::Error>
[src]

Serializes the metadata for the given type.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.