Struct rkyv::ser::serializers::AllocScratch [−][src]
pub struct AllocScratch { /* fields omitted */ }
Expand description
Scratch space that always uses the global allocator.
This allocator will panic if scratch is popped that it did not allocate. For this reason, it should only ever be used as a fallback allocator.
Implementations
Creates a new scratch allocator with the given allocation limit.
Trait Implementations
type Error = AllocScratchError
type Error = AllocScratchError
The error produced by any failing methods
Allocates scratch space of the requested size. Read more
Auto Trait Implementations
impl RefUnwindSafe for AllocScratch
impl !Send for AllocScratch
impl !Sync for AllocScratch
impl Unpin for AllocScratch
impl UnwindSafe for AllocScratch
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
D: Fallible + ?Sized,
F: ?Sized,
W: DeserializeWith<F, T, D>,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
D: Fallible + ?Sized,
F: ?Sized,
W: DeserializeWith<F, T, D>,