pub struct SmartAlloc;Expand description
SmartAlloc allocator which needs to be use with #[global_allocator]
Trait Implementations§
Source§impl GlobalAlloc for SmartAlloc
impl GlobalAlloc for SmartAlloc
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 SmartAlloc
impl RefUnwindSafe for SmartAlloc
impl Send for SmartAlloc
impl Sync for SmartAlloc
impl Unpin for SmartAlloc
impl UnwindSafe for SmartAlloc
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