Enum rkyv::ser::serializers::FixedSizeScratchError [−][src]
pub enum FixedSizeScratchError { OutOfScratch(Layout), NotPoppedInReverseOrder { pos: usize, next_pos: usize, next_size: usize, }, UnownedAllocation, }
Expand description
Errors that can occur when using a fixed-size allocator.
Pairing a fixed-size allocator with a fallback allocator can help prevent running out of scratch space unexpectedly.
Variants
OutOfScratch(Layout)
The allocator ran out of scratch space.
Scratch space was not popped in reverse order.
Show fields
The given allocation did not belong to the scratch allocator.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FixedSizeScratchError
impl Send for FixedSizeScratchError
impl Sync for FixedSizeScratchError
impl Unpin for FixedSizeScratchError
impl UnwindSafe for FixedSizeScratchError
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>,