logo
pub trait DeserializeUnsized<T: Pointee + ?Sized, D: Fallible + ?Sized>: ArchivePointee {
    unsafe fn deserialize_unsized(
        &self,
        deserializer: &mut D,
        alloc: impl FnMut(Layout) -> *mut u8
    ) -> 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.

Required methods

Deserializes a reference to the given value.

Safety

out must point to memory with the layout returned by deserialized_layout.

Deserializes the metadata for the given type.

Implementations on Foreign Types

Implementors