#[repr(C)]pub enum NSTDUnixAllocError {
NSTD_UNIX_ALLOC_ERROR_NONE,
NSTD_UNIX_ALLOC_ERROR_OUT_OF_MEMORY,
NSTD_UNIX_ALLOC_ERROR_INVALID_LAYOUT,
}Available on crate features
nstd_os and nstd_os_unix_alloc only.Expand description
Describes an error returned from an nstd.os.unix.alloc function.
Variants§
NSTD_UNIX_ALLOC_ERROR_NONE
No error occurred.
NSTD_UNIX_ALLOC_ERROR_OUT_OF_MEMORY
Allocating or reallocating failed.
NSTD_UNIX_ALLOC_ERROR_INVALID_LAYOUT
An allocation function received input parameters that resulted in an invalid memory layout.
Trait Implementations§
source§impl Clone for NSTDUnixAllocError
impl Clone for NSTDUnixAllocError
source§fn clone(&self) -> NSTDUnixAllocError
fn clone(&self) -> NSTDUnixAllocError
Returns a copy 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<NSTDUnixAllocError> for NSTDUnixAllocError
impl PartialEq<NSTDUnixAllocError> for NSTDUnixAllocError
source§fn eq(&self, other: &NSTDUnixAllocError) -> bool
fn eq(&self, other: &NSTDUnixAllocError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for NSTDUnixAllocError
impl Eq for NSTDUnixAllocError
impl StructuralEq for NSTDUnixAllocError
impl StructuralPartialEq for NSTDUnixAllocError
Auto Trait Implementations§
impl RefUnwindSafe for NSTDUnixAllocError
impl Send for NSTDUnixAllocError
impl Sync for NSTDUnixAllocError
impl Unpin for NSTDUnixAllocError
impl UnwindSafe for NSTDUnixAllocError
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