pub struct HeapAllocator;Expand description
Standard heap allocation via vec![0; capacity].
This is the default safe allocator used by ZeroPool.
Trait Implementations§
Source§impl Allocator for HeapAllocator
impl Allocator for HeapAllocator
Source§impl Clone for HeapAllocator
impl Clone for HeapAllocator
Source§fn clone(&self) -> HeapAllocator
fn clone(&self) -> HeapAllocator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HeapAllocator
Source§impl Debug for HeapAllocator
impl Debug for HeapAllocator
Source§impl Default for HeapAllocator
impl Default for HeapAllocator
Source§fn default() -> HeapAllocator
fn default() -> HeapAllocator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HeapAllocator
impl RefUnwindSafe for HeapAllocator
impl Send for HeapAllocator
impl Sync for HeapAllocator
impl Unpin for HeapAllocator
impl UnsafeUnpin for HeapAllocator
impl UnwindSafe for HeapAllocator
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