Struct alloc::rc::WeakExperimental [-]  [+] [src]

pub struct Weak<T> {
    // some fields omitted
}

A weak reference to a reference-counted pointer.

Methods

impl<T> Weak<T>

fn upgrade(&self) -> Option<Rc<T>>

Upgrades a weak reference to a strong reference.

Returns None if there were no strong references and the data was destroyed.

Trait Implementations

impl<T> Drop for Weak<T>

fn drop(&mut self)

impl<T> Clone for Weak<T>

fn clone(&self) -> Weak<T>

fn clone_from(&mut self, source: &Self)