pub enum VHeapError {
AllocationFreed,
ShapeMismatch,
NotAtStart,
NotFullyUninitialized,
ByteRange(ByteRangeError),
TooManyAllocations,
}Expand description
Error from heap operations.
Variants§
AllocationFreed
Tried to access a freed allocation.
ShapeMismatch
Shape mismatch on dealloc or drop.
NotAtStart
Pointer not at allocation start.
NotFullyUninitialized
Allocation still has initialized bytes.
ByteRange(ByteRangeError)
Byte range error.
TooManyAllocations
Too many allocations.
Trait Implementations§
Source§impl Clone for VHeapError
impl Clone for VHeapError
Source§fn clone(&self) -> VHeapError
fn clone(&self) -> VHeapError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VHeapError
Source§impl Debug for VHeapError
impl Debug for VHeapError
impl Eq for VHeapError
Source§impl PartialEq for VHeapError
impl PartialEq for VHeapError
Source§fn eq(&self, other: &VHeapError) -> bool
fn eq(&self, other: &VHeapError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VHeapError
Auto Trait Implementations§
impl Freeze for VHeapError
impl RefUnwindSafe for VHeapError
impl Send for VHeapError
impl Sync for VHeapError
impl Unpin for VHeapError
impl UnsafeUnpin for VHeapError
impl UnwindSafe for VHeapError
Blanket Implementations§
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