Enum rkyv::ser::serializers::AllocScratchError [−][src]
pub enum AllocScratchError {
ExceededLimit {
requested: usize,
remaining: usize,
},
NotPoppedInReverseOrder {
expected: *mut u8,
expected_layout: Layout,
actual: *mut u8,
actual_layout: Layout,
},
NoAllocationsToPop,
}
Expand description
Errors that can occur when allocating with the global allocator.
Variants
The amount of scratch space requested exceeded the maximum limit
Fields of ExceededLimit
Scratch space was not popped in reverse order.
Fields of NotPoppedInReverseOrder
There are no allocations to pop
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AllocScratchError
impl !Send for AllocScratchError
impl !Sync for AllocScratchError
impl Unpin for AllocScratchError
impl UnwindSafe for AllocScratchError
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