#[repr(C)]pub enum NSTDAllocError {
NSTD_ALLOC_ERROR_NONE = 0,
NSTD_ALLOC_ERROR_OUT_OF_MEMORY = 1,
NSTD_ALLOC_ERROR_MEMORY_NOT_FOUND = 2,
NSTD_ALLOC_ERROR_HEAP_NOT_FOUND = 3,
NSTD_ALLOC_ERROR_INVALID_HEAP = 4,
NSTD_ALLOC_ERROR_INVALID_LAYOUT = 5,
}Available on crate feature
core only.Expand description
Describes an error returned from allocation functions.
Variants§
NSTD_ALLOC_ERROR_NONE = 0
No error occurred.
NSTD_ALLOC_ERROR_OUT_OF_MEMORY = 1
Allocating or reallocating failed.
NSTD_ALLOC_ERROR_MEMORY_NOT_FOUND = 2
Deallocating memory failed.
NSTD_ALLOC_ERROR_HEAP_NOT_FOUND = 3
Getting a handle to a heap failed.
NSTD_ALLOC_ERROR_INVALID_HEAP = 4
A heap is invalid.
NSTD_ALLOC_ERROR_INVALID_LAYOUT = 5
An allocation function received input parameters that resulted in an invalid memory layout.
Trait Implementations§
Source§impl Clone for NSTDAllocError
impl Clone for NSTDAllocError
Source§fn clone(&self) -> NSTDAllocError
fn clone(&self) -> NSTDAllocError
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 PartialEq for NSTDAllocError
impl PartialEq for NSTDAllocError
impl Copy for NSTDAllocError
impl Eq for NSTDAllocError
impl StructuralPartialEq for NSTDAllocError
Auto Trait Implementations§
impl Freeze for NSTDAllocError
impl RefUnwindSafe for NSTDAllocError
impl Send for NSTDAllocError
impl Sync for NSTDAllocError
impl Unpin for NSTDAllocError
impl UnwindSafe for NSTDAllocError
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