pub struct Pool<T> { /* private fields */ }Expand description
Generic object pool for reusable objects
The pool maintains a collection of reusable objects to reduce allocation
overhead. Objects are returned to the pool automatically via PoolGuard.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Pool<T>
impl<T> RefUnwindSafe for Pool<T>where
T: RefUnwindSafe,
impl<T> Send for Pool<T>where
T: Send,
impl<T> Sync for Pool<T>where
T: Sync,
impl<T> Unpin for Pool<T>where
T: Unpin,
impl<T> UnsafeUnpin for Pool<T>
impl<T> UnwindSafe for Pool<T>where
T: 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