pub struct LocalPool { /* private fields */ }Expand description
A pool of garbage collected values.
Values from any pool can be read using any CollectionGuard. Using
independent pools for specific types of data that are meant to be shared
across many threads might be beneficial. However, an individual local pool
will not be fully deallocated until all values allocated have been
collected. Because of this, it may make sense to store some types in their
own pool, ensuring their collection is independent of how the values are
used amongst other threads.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LocalPool
impl !RefUnwindSafe for LocalPool
impl Send for LocalPool
impl Sync for LocalPool
impl Unpin for LocalPool
impl !UnwindSafe for LocalPool
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