Struct haz_alloc_core::Alloc
source · pub struct Alloc<B> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<B: Backend> GlobalAlloc for Alloc<B>
impl<B: Backend> GlobalAlloc for Alloc<B>
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 moreimpl<B> Copy for Alloc<B>
Auto Trait Implementations§
impl<B> RefUnwindSafe for Alloc<B>where B: RefUnwindSafe,
impl<B> Send for Alloc<B>where B: Send,
impl<B> Sync for Alloc<B>where B: Sync,
impl<B> Unpin for Alloc<B>where B: Unpin,
impl<B> UnwindSafe for Alloc<B>where B: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more