pub struct LeakingAllocator;
Expand description
A basic memory allocator which doesn’t support deallocation.
Trait Implementations§
Source§impl GlobalAlloc for LeakingAllocator
impl GlobalAlloc for LeakingAllocator
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 LeakingAllocator
impl RefUnwindSafe for LeakingAllocator
impl Send for LeakingAllocator
impl Sync for LeakingAllocator
impl Unpin for LeakingAllocator
impl UnwindSafe for LeakingAllocator
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