Struct std::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.