#[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 (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 StdAllocationError
Source§impl Debug for StdAllocationError
impl Debug for StdAllocationError
impl Eq for StdAllocationError
Source§impl PartialEq for StdAllocationError
impl PartialEq for StdAllocationError
Source§fn eq(&self, other: &StdAllocationError) -> bool
fn eq(&self, other: &StdAllocationError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ReprC for StdAllocationError
impl ReprC for StdAllocationError
impl StructuralPartialEq for StdAllocationError
Source§impl TryClone for StdAllocationError
impl TryClone for StdAllocationError
Source§impl WithMessage for StdAllocationError
impl WithMessage 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