Struct composable_allocators::AsGlobal
source · [−]pub struct AsGlobal<A: NonUnwinding + ?Sized>(pub A);
Tuple Fields
0: A
Trait Implementations
sourceimpl<A: NonUnwinding + Default> Default for AsGlobal<A>
impl<A: NonUnwinding + Default> Default for AsGlobal<A>
sourceimpl<A: NonUnwinding + ?Sized> GlobalAlloc for AsGlobal<A>
impl<A: NonUnwinding + ?Sized> GlobalAlloc for AsGlobal<A>
sourceunsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocate memory as described by the given layout
. Read more
sourceunsafe 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
impl<A: Copy + NonUnwinding + ?Sized> Copy for AsGlobal<A>
Auto Trait Implementations
impl<A: ?Sized> RefUnwindSafe for AsGlobal<A> where
A: RefUnwindSafe,
impl<A: ?Sized> Send for AsGlobal<A> where
A: Send,
impl<A: ?Sized> Sync for AsGlobal<A> where
A: Sync,
impl<A: ?Sized> Unpin for AsGlobal<A> where
A: Unpin,
impl<A: ?Sized> UnwindSafe for AsGlobal<A> where
A: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more