[][src]Trait pui::runtime::Pool

pub trait Pool<T>: PoolMut<T> {
    pub fn try_put(&self, value: RuntimeId<T>) -> Result<(), RuntimeId<T>>;
pub fn take(&self) -> Option<RuntimeId<T>>; }

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

Required methods

pub fn try_put(&self, value: RuntimeId<T>) -> Result<(), RuntimeId<T>>[src]

Put a new id into the pool

pub fn take(&self) -> Option<RuntimeId<T>>[src]

Take an idea out of the pool

Loading content...

Implementations on Foreign Types

impl<T> Pool<T> for ()[src]

impl<T, R: ?Sized + Pool<T>> Pool<T> for &R[src]

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

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

impl<T, U: PoolMut<T>> Pool<T> for Mutex<U>[src]

impl<P: Pool<T>, T> Pool<T> for [P][src]

Loading content...

Implementors

Loading content...