pub enum AllocationError {
OutOfMemory,
InvalidLayout,
}Expand description
Error that can be returned for allocation and deallocation requests.
Variants§
OutOfMemory
Can’t satisfy the allocation request for Layout because the allocator
does not have enough memory (you may be able to refill it).
InvalidLayout
Allocator can’t deal with the provided size of the Layout.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AllocationError
impl RefUnwindSafe for AllocationError
impl Send for AllocationError
impl Sync for AllocationError
impl Unpin for AllocationError
impl UnwindSafe for AllocationError
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