Trait rkyv_dyn::DynDeserializer[][src]

pub trait DynDeserializer {
    unsafe fn alloc_dyn(&mut self, layout: Layout) -> Result<*mut u8, DynError>;
}
Expand description

An object-safe version of Deserializer.

Required methods

unsafe fn alloc_dyn(&mut self, layout: Layout) -> Result<*mut u8, DynError>[src]

Allocates and returns memory with the given layout.

Safety

The caller must guarantee that the memory returned by this function is deallocated by the global allocator.

Trait Implementations

impl<'a> Deserializer for dyn DynDeserializer + 'a[src]

unsafe fn alloc(&mut self, layout: Layout) -> Result<*mut u8, Self::Error>[src]

Allocates and returns memory with the given layout. Read more

impl<'a> Fallible for dyn DynDeserializer + 'a[src]

type Error = DynError

The error produced by any failing methods

Implementations on Foreign Types

impl<D: Deserializer + ?Sized> DynDeserializer for &mut D[src]

unsafe fn alloc_dyn(&mut self, layout: Layout) -> Result<*mut u8, DynError>[src]

Implementors