Trait rkyv::DeserializeUnsized[][src]

pub trait DeserializeUnsized<T: ArchiveUnsized<Archived = Self> + ?Sized, D: Fallible + ?Sized>: ArchivePointee {
    unsafe fn deserialize_unsized(
        &self,
        deserializer: &mut D
    ) -> Result<*mut (), D::Error>;
fn deserialize_metadata(
        &self,
        deserializer: &mut D
    ) -> Result<T::Metadata, D::Error>; }
Expand description

A counterpart of Deserialize that’s suitable for unsized types.

Most types that implement DeserializeUnsized will need a Deserializer bound so that they can allocate memory.

Required methods

Deserializes a reference to the given value.

Safety

The caller must guarantee that the memory returned is properly deallocated.

Deserializes the metadata for the given type.

Implementations on Foreign Types

Implementors