Struct composable_allocators::AsGlobal
source · pub struct AsGlobal<A: NonUnwinding + ?Sized>(pub A);
Tuple Fields§
§0: A
Trait Implementations§
source§impl<A: NonUnwinding + ?Sized> GlobalAlloc for AsGlobal<A>
impl<A: NonUnwinding + ?Sized> GlobalAlloc for AsGlobal<A>
source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocate memory as described by the given
layout
. Read moresource§unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8
unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8
Behaves like
alloc
, but also ensures that the contents
are set to zero before being returned. Read more