Struct fpool::ItemHandle [−][src]
pub struct ItemHandle<T> { /* fields omitted */ }
A handle to the item. Implements Deref and DerefMut for the item, and also allows you to invalidate the item.
Methods
impl<T> ItemHandle<T>
[src]
impl<T> ItemHandle<T>
pub fn as_item_mut(&mut self) -> &mut T
[src]
pub fn as_item_mut(&mut self) -> &mut T
pub fn as_item(&self) -> &T
[src]
pub fn as_item(&self) -> &T
pub fn invalidate(&mut self)
[src]
pub fn invalidate(&mut self)
Invalidate this item, it will be re-constructed on next retrieval.
Trait Implementations
impl<T: Debug> Debug for ItemHandle<T>
[src]
impl<T: Debug> Debug for ItemHandle<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T> Deref for ItemHandle<T>
[src]
impl<T> Deref for ItemHandle<T>
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
fn deref(&self) -> &T
Dereferences the value.
impl<T> DerefMut for ItemHandle<T>
[src]
impl<T> DerefMut for ItemHandle<T>
Auto Trait Implementations
impl<T> Send for ItemHandle<T> where
T: Send,
impl<T> Send for ItemHandle<T> where
T: Send,
impl<T> Sync for ItemHandle<T> where
T: Sync,
impl<T> Sync for ItemHandle<T> where
T: Sync,