Enum AllocationError
pub enum AllocationError {
UnsupportedOperation,
OutOfMemory,
}Expand description
Errors that may occur during memory allocation operations.
This enum represents possible failure cases when manipulating an [Allocation] using an AllocationController.
Variants§
UnsupportedOperation
The requested allocation operation is not supported by the allocator.
This may occur, for example, when attempting to grow an allocation with an allocator that does not support resizing.
OutOfMemory
The allocation failed due to insufficient memory.
This typically indicates that the system or allocator could not provide the requested amount of memory.
Trait Implementations§
§impl Clone for AllocationError
impl Clone for AllocationError
§fn clone(&self) -> AllocationError
fn clone(&self) -> AllocationError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for AllocationError
impl Debug for AllocationError
§impl PartialEq for AllocationError
impl PartialEq for AllocationError
impl StructuralPartialEq for AllocationError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more