pub struct SyncStackPool<T: ScalarAllocator>(/* private fields */);Available on crate feature
std only.Expand description
A thread safe stack-pool, it returns scalars in LIFO order
Trait Implementations§
Source§impl<A: ScalarAllocator> Init for SyncStackPool<A>
Available on crate features parking_lot or std only.
impl<A: ScalarAllocator> Init for SyncStackPool<A>
Available on crate features
parking_lot or std only.Source§impl<A: ScalarAllocator> Pool<A> for SyncStackPool<A>
Available on crate features parking_lot or std only.
impl<A: ScalarAllocator> Pool<A> for SyncStackPool<A>
Available on crate features
parking_lot or std only.Source§fn insert(&self, scalar: OpaqueScalar<A>) -> Option<OpaqueScalar<A>>
fn insert(&self, scalar: OpaqueScalar<A>) -> Option<OpaqueScalar<A>>
Put a new id into the pool
Source§fn remove(&self) -> Option<OpaqueScalar<A>>
fn remove(&self) -> Option<OpaqueScalar<A>>
Take an id out of the pool
Source§impl<A: ScalarAllocator> PoolMut<A> for SyncStackPool<A>
Available on crate features parking_lot or std only.
impl<A: ScalarAllocator> PoolMut<A> for SyncStackPool<A>
Available on crate features
parking_lot or std only.Source§fn insert_mut(&mut self, scalar: OpaqueScalar<A>) -> Option<OpaqueScalar<A>>
fn insert_mut(&mut self, scalar: OpaqueScalar<A>) -> Option<OpaqueScalar<A>>
Put a new id into the pool
Source§fn remove_mut(&mut self) -> Option<OpaqueScalar<A>>
fn remove_mut(&mut self) -> Option<OpaqueScalar<A>>
Take an id out of the pool
Auto Trait Implementations§
impl<T> !Freeze for SyncStackPool<T>
impl<T> !RefUnwindSafe for SyncStackPool<T>
impl<T> Send for SyncStackPool<T>
impl<T> Sync for SyncStackPool<T>
impl<T> Unpin for SyncStackPool<T>
impl<T> UnwindSafe for SyncStackPool<T>
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