Struct swimmer::Recycled [−][src]
A smart pointer which returns the contained object to its pool once dropped.
Objects of this type are obtained using Pool::get
.
Trait Implementations
impl<'a, T> AsMut<T> for Recycled<'a, T> where
T: Recyclable,
[src]
T: Recyclable,
impl<'a, T> AsRef<T> for Recycled<'a, T> where
T: Recyclable,
[src]
T: Recyclable,
impl<'a, T> Debug for Recycled<'a, T> where
T: Recyclable + Debug,
[src]
T: Recyclable + Debug,
impl<'a, T> Deref for Recycled<'a, T> where
T: Recyclable,
[src]
T: Recyclable,
impl<'a, T> DerefMut for Recycled<'a, T> where
T: Recyclable,
[src]
T: Recyclable,
impl<'a, T> Display for Recycled<'a, T> where
T: Recyclable + Display,
[src]
T: Recyclable + Display,
impl<'a, T> Drop for Recycled<'a, T> where
T: Recyclable,
[src]
T: Recyclable,
impl<'a, T> PartialEq<T> for Recycled<'a, T> where
T: Recyclable + PartialEq,
[src]
T: Recyclable + PartialEq,
impl<'a, T> PartialOrd<T> for Recycled<'a, T> where
T: Recyclable + PartialOrd,
[src]
T: Recyclable + PartialOrd,
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for Recycled<'a, T>
[src]
impl<'a, T> Send for Recycled<'a, T>
[src]
impl<'a, T> Sync for Recycled<'a, T> where
T: Sync,
[src]
T: Sync,
impl<'a, T> Unpin for Recycled<'a, T> where
T: Unpin,
[src]
T: Unpin,
impl<'a, T> !UnwindSafe for Recycled<'a, T>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,