[−][src]Struct lifeguard::RcRecycled
A smartpointer which uses reference counting (Rc
) to know
when to move its wrapped value back to the Pool
that
issued it.
Implementations
impl<'a, T> RcRecycled<T> where
T: Recycleable,
[src]
T: Recycleable,
pub fn detach(self) -> T
[src]
Disassociates the value from the Pool
that issued it. This
destroys the smartpointer and returns the previously wrapped value.
Trait Implementations
impl<'a, T> AsMut<T> for RcRecycled<T> where
T: Recycleable,
[src]
T: Recycleable,
pub fn as_mut(&mut self) -> &mut T
[src]
Gets a mutable reference to the value wrapped by the smartpointer.
impl<'a, T> AsRef<T> for RcRecycled<T> where
T: Recycleable,
[src]
T: Recycleable,
impl<T> Clone for RcRecycled<T> where
T: Clone + Recycleable,
[src]
T: Clone + Recycleable,
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, T> Debug for RcRecycled<T> where
T: Debug + Recycleable,
[src]
T: Debug + Recycleable,
impl<'a, T> Deref for RcRecycled<T> where
T: Recycleable,
[src]
T: Recycleable,
impl<'a, T> DerefMut for RcRecycled<T> where
T: Recycleable,
[src]
T: Recycleable,
impl<'a, T> Display for RcRecycled<T> where
T: Display + Recycleable,
[src]
T: Display + Recycleable,
impl<'a, T> Eq for RcRecycled<T> where
T: Eq + Recycleable,
[src]
T: Eq + Recycleable,
impl<'a, T> Hash for RcRecycled<T> where
T: Hash + Recycleable,
[src]
T: Hash + Recycleable,
pub fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a, T> Ord for RcRecycled<T> where
T: Ord + Recycleable,
[src]
T: Ord + Recycleable,
pub fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<'a, T> PartialEq<RcRecycled<T>> for RcRecycled<T> where
T: PartialEq + Recycleable,
[src]
T: PartialEq + Recycleable,
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a, T> PartialOrd<RcRecycled<T>> for RcRecycled<T> where
T: PartialOrd + Recycleable,
[src]
T: PartialOrd + Recycleable,
Auto Trait Implementations
impl<T> !RefUnwindSafe for RcRecycled<T>
impl<T> !Send for RcRecycled<T>
impl<T> !Sync for RcRecycled<T>
impl<T> Unpin for RcRecycled<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for RcRecycled<T>
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,