pub struct Entry<'a, T: Default> { /* private fields */ }Expand description
An entry in the pool.
Entry holds a reference pointer to an item from the pool and a reference
to the Pool.
When the last Entry is dropped, the item is returned to the pool.
Implementations§
Source§impl<'a, T: Default> Entry<'a, T>
impl<'a, T: Default> Entry<'a, T>
Trait Implementations§
Source§impl<'a, T: Default + Ord> Ord for Entry<'a, T>
impl<'a, T: Default + Ord> Ord for Entry<'a, T>
Source§impl<'a, T: Default + PartialOrd> PartialOrd for Entry<'a, T>
impl<'a, T: Default + PartialOrd> PartialOrd for Entry<'a, T>
impl<'a, T: Default + Eq> Eq for Entry<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for Entry<'a, T>
impl<'a, T> RefUnwindSafe for Entry<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Entry<'a, T>
impl<'a, T> Sync for Entry<'a, T>
impl<'a, T> Unpin for Entry<'a, T>
impl<'a, T> UnwindSafe for Entry<'a, T>where
T: RefUnwindSafe,
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