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 = AllocScratchErrorThe error produced by any failing methods.
Allocates scratch space of the requested size. Read more
Auto Trait Implementations
impl RefUnwindSafe for AllocScratchimpl !Send for AllocScratchimpl !Sync for AllocScratchimpl Unpin for AllocScratchimpl UnwindSafe for AllocScratchBlanket 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>,