Struct librsnek::system::WeakRc 1.4.0
[−]
[src]
pub struct WeakRc<T> where
T: ?Sized, {
ptr: Shared<RcBox<T>>,
}Weak is a version of [Rc] that holds a non-owning reference to the
Fields
ptr: Shared<RcBox<T>>
Methods
impl<T> Weak<T>[src]
impl<T> Weak<T> where
T: ?Sized, [src]
T: ?Sized,
Trait Implementations
impl<T> !Sync for Weak<T> where
T: ?Sized, [src]
T: ?Sized,
impl<T> Drop for Weak<T> where
T: ?Sized, [src]
T: ?Sized,
fn drop(&mut self)
Drops the Weak pointer.
impl<T, U> CoerceUnsized<Weak<U>> for Weak<T> where
T: Unsize<U> + ?Sized,
U: ?Sized, [src]
T: Unsize<U> + ?Sized,
U: ?Sized,
impl<T> Clone for Weak<T> where
T: ?Sized, [src]
T: ?Sized,
fn clone(&self) -> Weak<T>
Makes a clone of the Weak pointer that points to the same value.
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source.
impl<T> Debug for Weak<T> where
T: Debug + ?Sized, [src]
T: Debug + ?Sized,
impl<T> Default for Weak<T>1.10.0[src]
impl<T> !Send for Weak<T> where
T: ?Sized, [src]
T: ?Sized,