Enum rkyv::ser::serializers::AllocScratchError
source · 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§
ExceededLimit
The amount of scratch space requested exceeded the maximum limit
Fields
NotPoppedInReverseOrder
Scratch space was not popped in reverse order.
Fields
NoAllocationsToPop
There are no allocations to pop
Trait Implementations§
source§impl Debug for AllocScratchError
impl Debug for AllocScratchError
source§impl Display for AllocScratchError
impl Display for AllocScratchError
source§impl Error for AllocScratchError
impl Error for AllocScratchError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Send for AllocScratchError
impl Sync for AllocScratchError
Auto Trait Implementations§
impl Freeze for AllocScratchError
impl RefUnwindSafe for AllocScratchError
impl Unpin for AllocScratchError
impl UnwindSafe for AllocScratchError
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more