Enum allocators::AllocatorError [] [src]

pub enum AllocatorError {
    OutOfMemory,
    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.

AllocatorSpecific(String)

An allocator-specific error message.

Trait Implementations

impl PartialEq for AllocatorError
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

impl Eq for AllocatorError
[src]

impl Debug for AllocatorError
[src]

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

Formats the value using the given formatter.

impl Display for AllocatorError
[src]

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

Formats the value using the given formatter.

impl Error for AllocatorError
[src]

fn description(&self) -> &str

A short description of the error. Read more

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

The lower-level cause of this error, if any. Read more