[][src]Trait pui_core::pool::Pool

pub trait Pool<A: ScalarAllocator>: PoolMut<A> {
    pub fn insert(&self, scalar: OpaqueScalar<A>) -> Option<OpaqueScalar<A>>;
pub fn remove(&self) -> Option<OpaqueScalar<A>>; }

A pool of ids that can be used to reuse ids in Dynamic.

Required methods

pub fn insert(&self, scalar: OpaqueScalar<A>) -> Option<OpaqueScalar<A>>[src]

Put a new id into the pool

pub fn remove(&self) -> Option<OpaqueScalar<A>>[src]

Take an id out of the pool

Loading content...

Implementations on Foreign Types

impl<A: ScalarAllocator, T: Default + PoolMut<A>> Pool<A> for Cell<T>[src]

impl<A: ScalarAllocator, T: PoolMut<A>> Pool<A> for RefCell<T>[src]

impl<A: ScalarAllocator, P: PoolMut<A>> Pool<A> for Mutex<P>[src]

impl<A: ScalarAllocator, P: PoolMut<A>> Pool<A> for Mutex<P>[src]

impl<A: ScalarAllocator, P: Pool<A>, F: FnOnce() -> P> Pool<A> for Lazy<P, F>[src]

impl<A: ScalarAllocator, P: Pool<A>, F: FnOnce() -> P> Pool<A> for Lazy<P, F>[src]

impl<A: ScalarAllocator> Pool<A> for ()[src]

impl<P: ?Sized + Pool<A>, A: ScalarAllocator> Pool<A> for &mut P[src]

impl<P: ?Sized + Pool<A>, A: ScalarAllocator> Pool<A> for &P[src]

Loading content...

Implementors

impl<A: ScalarAllocator> Pool<A> for SyncQueuePool<A>[src]

impl<A: ScalarAllocator> Pool<A> for SyncStackPool<A>[src]

impl<A: ScalarAllocator<Scalar = ()>> Pool<A> for Flag<A>[src]

impl<A: ScalarAllocator, R: Radium<Item = usize>, P: Pool<A>> Pool<A> for Sequence<R, [P]>[src]

Loading content...