[][src]Trait alloc_wg::alloc::AllocRef

pub trait AllocRef: DeallocRef {
    type Error;
    fn alloc(
        &mut self,
        layout: NonZeroLayout
    ) -> Result<NonNull<u8>, Self::Error>; fn alloc_zeroed(
        &mut self,
        layout: NonZeroLayout
    ) -> Result<NonNull<u8>, Self::Error> { ... } }

Associated Types

type Error

Loading content...

Required methods

fn alloc(&mut self, layout: NonZeroLayout) -> Result<NonNull<u8>, Self::Error>

Loading content...

Provided methods

fn alloc_zeroed(
    &mut self,
    layout: NonZeroLayout
) -> Result<NonNull<u8>, Self::Error>

Loading content...

Implementations on Foreign Types

impl AllocRef for System[src]

type Error = AllocErr

Loading content...

Implementors

impl AllocRef for Global[src]

type Error = AllocErr

impl<A: AllocRef> AllocRef for AbortAlloc<A>[src]

type Error = Never

Loading content...