Struct alloc_geiger::Geiger
source · pub struct Geiger<Alloc> { /* private fields */ }
Expand description
Geiger counter allocator.
Implementations§
Trait Implementations§
source§impl<Alloc: GlobalAlloc> GlobalAlloc for Geiger<Alloc>
impl<Alloc: GlobalAlloc> GlobalAlloc for Geiger<Alloc>
source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocate 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<Alloc> RefUnwindSafe for Geiger<Alloc>where Alloc: RefUnwindSafe,
impl<Alloc> Send for Geiger<Alloc>where Alloc: Send,
impl<Alloc> Sync for Geiger<Alloc>where Alloc: Sync,
impl<Alloc> Unpin for Geiger<Alloc>where Alloc: Unpin,
impl<Alloc> UnwindSafe for Geiger<Alloc>where Alloc: UnwindSafe,
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