Skip to main content

AllocErrorType

Trait AllocErrorType 

Source
pub trait AllocErrorType {
    type Error: From<Error> + Debug + Display;
}
Expand description

Trait defining the shared error type of an allocator.

Required Associated Types§

Source

type Error: From<Error> + Debug + Display

The error type returned by this allocator.

Implementations on Foreign Types§

Source§

impl AllocErrorType for Global

Available on non-crate feature no_alloc only.
Source§

impl AllocErrorType for System

Available on crate feature std and non-crate feature no_alloc only.
Source§

impl<A: AllocErrorType + ?Sized> AllocErrorType for &A

Source§

impl<A: AllocErrorType + ?Sized> AllocErrorType for &mut A

Source§

impl<A: AllocErrorType + ?Sized> AllocErrorType for Box<A>

Source§

impl<A: AllocErrorType + ?Sized> AllocErrorType for Rc<A>

Source§

impl<A: AllocErrorType + ?Sized> AllocErrorType for Arc<A>

Source§

impl<A: AllocErrorType + ?Sized> AllocErrorType for RefCell<A>

Source§

impl<A: AllocErrorType + ?Sized> AllocErrorType for Mutex<A>

Source§

impl<A: AllocErrorType + ?Sized> AllocErrorType for RwLock<A>

Implementors§

Source§

impl AllocErrorType for CAlloc

Source§

impl AllocErrorType for DefaultAlloc

Available on non-crate feature no_alloc only.