Trait rkyv::ser::ScratchSpace
source · [−]pub trait ScratchSpace: Fallible {
unsafe fn push_scratch(
&mut self,
layout: Layout
) -> Result<NonNull<[u8]>, Self::Error>;
unsafe fn pop_scratch(
&mut self,
ptr: NonNull<u8>,
layout: Layout
) -> Result<(), Self::Error>;
}
Expand description
A serializer that can allocate scratch space.