pub struct YoAlloc;Expand description
The allocator. Delegates to the system allocator and checks the flag first.
Implementations§
Trait Implementations§
impl Copy for YoAlloc
Source§impl GlobalAlloc for YoAlloc
impl GlobalAlloc for YoAlloc
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 moreSource§unsafe 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 moreAuto Trait Implementations§
impl Freeze for YoAlloc
impl RefUnwindSafe for YoAlloc
impl Send for YoAlloc
impl Sync for YoAlloc
impl Unpin for YoAlloc
impl UnsafeUnpin for YoAlloc
impl UnwindSafe for YoAlloc
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