#[repr(C)]pub enum StdAllocationError {
AllocationError = 0,
MisalignedResult = 1,
}Available on crate feature
std only.Expand description
The standard allocator error.
Variants§
AllocationError = 0
A generic allocation error. Likely because of out of memory.
MisalignedResult = 1
The result is misaligned. Likely because the requested alignment is above what malloc supports.
Trait Implementations§
Source§impl Clone for StdAllocationError
impl Clone for StdAllocationError
Source§fn clone(&self) -> StdAllocationError
fn clone(&self) -> StdAllocationError
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 moreSource§impl Debug for StdAllocationError
impl Debug for StdAllocationError
Source§impl From<StdAllocationError> for AllocationError
impl From<StdAllocationError> for AllocationError
Source§fn from(_: StdAllocationError) -> Self
fn from(_: StdAllocationError) -> Self
Converts to this type from the input type.
Source§impl ReprC for StdAllocationError
impl ReprC for StdAllocationError
impl Copy for StdAllocationError
Auto Trait Implementations§
impl Freeze for StdAllocationError
impl RefUnwindSafe for StdAllocationError
impl Send for StdAllocationError
impl Sync for StdAllocationError
impl Unpin for StdAllocationError
impl UnsafeUnpin for StdAllocationError
impl UnwindSafe for StdAllocationError
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