pub struct LimitedAllocator;Expand description
The system allocator, plus the live-byte count that enforces the memory limit and a null check that ends the process deliberately.
Trait Implementations§
Source§impl GlobalAlloc for LimitedAllocator
impl GlobalAlloc for LimitedAllocator
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 LimitedAllocator
impl RefUnwindSafe for LimitedAllocator
impl Send for LimitedAllocator
impl Sync for LimitedAllocator
impl Unpin for LimitedAllocator
impl UnsafeUnpin for LimitedAllocator
impl UnwindSafe for LimitedAllocator
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