pub struct MemoryPool<T> { /* private fields */ }
Implementations§
Source§impl<T> MemoryPool<T>
impl<T> MemoryPool<T>
pub fn new() -> Self
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Examples found in repository?
More examples
Trait Implementations§
Source§impl<T> Allocator<T> for MemoryPool<T>
impl<T> Allocator<T> for MemoryPool<T>
Source§impl<T: Debug> Debug for MemoryPool<T>
impl<T: Debug> Debug for MemoryPool<T>
Source§impl<T> Default for MemoryPool<T>
impl<T> Default for MemoryPool<T>
Auto Trait Implementations§
impl<T> Freeze for MemoryPool<T>
impl<T> RefUnwindSafe for MemoryPool<T>where
T: RefUnwindSafe,
impl<T> !Send for MemoryPool<T>
impl<T> !Sync for MemoryPool<T>
impl<T> Unpin for MemoryPool<T>where
T: Unpin,
impl<T> UnwindSafe for MemoryPool<T>where
T: UnwindSafe + RefUnwindSafe,
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