[][src]Struct context_allocator::GlobalAllocToAllocatorAdaptor

pub struct GlobalAllocToAllocatorAdaptor<GA: GlobalAlloc>(pub GA);

Adapts implementations of GlobalAlloc to Allocator.

Trait Implementations

impl<GA: GlobalAlloc> Allocator for GlobalAllocToAllocatorAdaptor<GA>[src]

const ZeroSizedAllocation: MemoryAddress[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<GA: GlobalAlloc> Debug for GlobalAllocToAllocatorAdaptor<GA>[src]

impl<GA: GlobalAlloc> Deref for GlobalAllocToAllocatorAdaptor<GA>[src]

type Target = GA

The resulting type after dereferencing.

Auto Trait Implementations

impl<GA> Send for GlobalAllocToAllocatorAdaptor<GA> where
    GA: Send

impl<GA> Sync for GlobalAllocToAllocatorAdaptor<GA> where
    GA: Sync

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.