pub struct Alloc { /* private fields */ }
Implementations§
Trait Implementations§
source§impl GlobalAlloc for Alloc
impl GlobalAlloc for Alloc
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 Copy for Alloc
Auto Trait Implementations§
impl RefUnwindSafe for Alloc
impl Send for Alloc
impl Sync for Alloc
impl Unpin for Alloc
impl UnwindSafe for Alloc
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