[−][src]Trait alloc_wg::alloc::AllocRef
Associated Types
type BuildAlloc: BuildAlloc<AllocRef = Self>
type Error
Required methods
fn get_build_alloc(&mut self) -> Self::BuildAlloc
fn alloc(&mut self, layout: NonZeroLayout) -> Result<NonNull<u8>, Self::Error>
Provided methods
fn alloc_zeroed(
&mut self,
layout: NonZeroLayout
) -> Result<NonNull<u8>, Self::Error>
&mut self,
layout: NonZeroLayout
) -> Result<NonNull<u8>, Self::Error>
Implementations on Foreign Types
impl AllocRef for Global[src]
type BuildAlloc = Self
type Error = AllocErr
fn get_build_alloc(&mut self) -> Self::BuildAlloc[src]
fn alloc(&mut self, layout: NonZeroLayout) -> Result<NonNull<u8>, Self::Error>[src]
fn alloc_zeroed(
&mut self,
layout: NonZeroLayout
) -> Result<NonNull<u8>, Self::Error>[src]
&mut self,
layout: NonZeroLayout
) -> Result<NonNull<u8>, Self::Error>
impl AllocRef for System[src]
type BuildAlloc = Self
type Error = AllocErr
fn get_build_alloc(&mut self) -> Self::BuildAlloc[src]
fn alloc(&mut self, layout: NonZeroLayout) -> Result<NonNull<u8>, Self::Error>[src]
fn alloc_zeroed(
&mut self,
layout: NonZeroLayout
) -> Result<NonNull<u8>, Self::Error>[src]
&mut self,
layout: NonZeroLayout
) -> Result<NonNull<u8>, Self::Error>
Implementors
impl<A: AllocRef> AllocRef for AbortAlloc<A>[src]
type BuildAlloc = AbortAlloc<A::BuildAlloc>
type Error = !
fn get_build_alloc(&mut self) -> Self::BuildAlloc[src]
fn alloc(&mut self, layout: NonZeroLayout) -> Result<NonNull<u8>, Self::Error>[src]
fn alloc_zeroed(
&mut self,
layout: NonZeroLayout
) -> Result<NonNull<u8>, Self::Error>[src]
&mut self,
layout: NonZeroLayout
) -> Result<NonNull<u8>, Self::Error>