pub struct MyAllocator;
Trait Implementations§
Source§impl GlobalAlloc for MyAllocator
impl GlobalAlloc for MyAllocator
Source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocates memory as described by the given
layout
. Read moreAuto Trait Implementations§
impl Freeze for MyAllocator
impl RefUnwindSafe for MyAllocator
impl Send for MyAllocator
impl Sync for MyAllocator
impl Unpin for MyAllocator
impl UnwindSafe for MyAllocator
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