pub struct SyncQueuePool<T: ScalarAllocator>(/* private fields */);Available on crate feature
std only.Expand description
A thread safe queue-pool, it returns scalars in FIFO order
Trait Implementations§
Source§impl<A: ScalarAllocator> Init for SyncQueuePool<A>
Available on crate features parking_lot or std only.
impl<A: ScalarAllocator> Init for SyncQueuePool<A>
Available on crate features
parking_lot or std only.Source§impl<A: ScalarAllocator> Pool<A> for SyncQueuePool<A>
Available on crate features parking_lot or std only.
impl<A: ScalarAllocator> Pool<A> for SyncQueuePool<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 SyncQueuePool<A>
Available on crate features parking_lot or std only.
impl<A: ScalarAllocator> PoolMut<A> for SyncQueuePool<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 SyncQueuePool<T>
impl<T> !RefUnwindSafe for SyncQueuePool<T>
impl<T> Send for SyncQueuePool<T>
impl<T> Sync for SyncQueuePool<T>
impl<T> Unpin for SyncQueuePool<T>
impl<T> UnwindSafe for SyncQueuePool<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