pub struct MemoryPool { /* private fields */ }Expand description
Simple memory pool for large computations
Implementations§
Source§impl MemoryPool
impl MemoryPool
pub fn new(size: usize) -> Self
pub fn allocate(&mut self, size: usize) -> EnumerativeResult<MemoryAllocation>
pub fn usage_percentage(&self) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemoryPool
impl RefUnwindSafe for MemoryPool
impl Send for MemoryPool
impl Sync for MemoryPool
impl Unpin for MemoryPool
impl UnwindSafe for MemoryPool
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