Skip to main content

upgrade_rc_weak

Function upgrade_rc_weak 

Source
pub fn upgrade_rc_weak<T>(weak: &Weak<T>) -> Option<Rc<T>>
Expand description

Helper function to upgrade an Rc::Weak to Rc Returns None if the Rc has been dropped Note: This returns an owned Rc, not a reference, so it cannot be used in keypaths directly