[][src]Trait pui_core::pool::PoolMut

pub trait PoolMut<A: ScalarAllocator> {
    pub fn insert_mut(
        &mut self,
        scalar: OpaqueScalar<A>
    ) -> Option<OpaqueScalar<A>>;
pub fn remove_mut(&mut self) -> Option<OpaqueScalar<A>>; }

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

Required methods

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

Put a new id into the pool

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

Take an id out of the pool

Loading content...

Implementations on Foreign Types

impl<A: ScalarAllocator, T: ?Sized + PoolMut<A>> PoolMut<A> for Cell<T>[src]

impl<A: ScalarAllocator, T: ?Sized + PoolMut<A>> PoolMut<A> for RefCell<T>[src]

impl<A: ScalarAllocator> PoolMut<A> for Option<OpaqueScalar<A>>[src]

impl<A: ScalarAllocator> PoolMut<A> for Vec<OpaqueScalar<A>>[src]

impl<A: ScalarAllocator> PoolMut<A> for VecDeque<OpaqueScalar<A>>[src]

impl<A: ScalarAllocator> PoolMut<A> for BinaryHeap<OpaqueScalar<A>> where
    A::Scalar: Ord
[src]

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

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

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

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

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

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

Loading content...

Implementors

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

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

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

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

Loading content...