pub struct LandauerAllocator;Expand description
The Landauer allocator wraps the system allocator and counts bit
erasures on every dealloc call.
Trait Implementations§
Source§impl GlobalAlloc for LandauerAllocator
impl GlobalAlloc for LandauerAllocator
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 LandauerAllocator
impl RefUnwindSafe for LandauerAllocator
impl Send for LandauerAllocator
impl Sync for LandauerAllocator
impl Unpin for LandauerAllocator
impl UnsafeUnpin for LandauerAllocator
impl UnwindSafe for LandauerAllocator
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