Enum allocators::Error [] [src]

pub enum Error {
    OutOfMemory,
    UnsupportedAlignment,
    AllocatorSpecific(String),
}

Errors that can occur while creating an allocator or allocating from it.

Variants

OutOfMemory

The allocator failed to allocate the amount of memory requested of it.

UnsupportedAlignment

The allocator does not support the requested alignment.

AllocatorSpecific

An allocator-specific error message.

Trait Implementations

impl Display for Error

fn fmt(&self, formatter: &mut Formatter) -> Result

impl StdError for Error

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

Derived Implementations

impl PartialEq for Error

fn eq(&self, __arg_0: &Error) -> bool

fn ne(&self, __arg_0: &Error) -> bool

impl Eq for Error

impl Debug for Error

fn fmt(&self, __arg_0: &mut Formatter) -> Result