pub struct FailAllocator;
Expand description
Allocator that fails (with signal error) whenever an allocation is attempted.
Trait Implementations§
Source§impl GlobalAlloc for FailAllocator
impl GlobalAlloc for FailAllocator
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 FailAllocator
impl RefUnwindSafe for FailAllocator
impl Send for FailAllocator
impl Sync for FailAllocator
impl Unpin for FailAllocator
impl UnwindSafe for FailAllocator
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