Trait rkyv::DeserializeUnsized
source · pub trait DeserializeUnsized<T: Pointee + ?Sized, D: Fallible + ?Sized>: ArchivePointee {
// Required methods
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§
Object Safety§
This trait is not object safe.