[][src]Struct context_allocator::AllocToAllocatorAdaptor

pub struct AllocToAllocatorAdaptor<A: Alloc>(_);

Adapts implementations of Alloc to Allocator.

Trait Implementations

impl<A: Alloc> Allocator for AllocToAllocatorAdaptor<A>[src]

const ZeroSizedAllocation: NonNull<u8>[src]

The sentinel value used for a zero-sized allocation.

fn adapt<'a>(&'a self) -> AllocatorAdaptor<'a, Self>[src]

Adapts to a GlobalAlloc and Alloc.

fn adapt_reference<'a>(&'a self) -> &'a AllocatorAdaptor<'a, Self>[src]

Adapts a reference to a GlobalAlloc and Alloc reference.

impl<A: Alloc> Debug for AllocToAllocatorAdaptor<A>[src]

impl<A: Alloc> Deref for AllocToAllocatorAdaptor<A>[src]

type Target = A

The resulting type after dereferencing.

Auto Trait Implementations

impl<A> Send for AllocToAllocatorAdaptor<A> where
    A: Send

impl<A> !Sync for AllocToAllocatorAdaptor<A>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.