pub fn upgrade(&self) -> Option<FxNode> {
        match self {
            WeakFxNode::Dir(dir) => Weak::upgrade(dir).map(|dir| FxNode::Dir(dir)),
            WeakFxNode::File(file) => Weak::upgrade(file).map(|file| FxNode::File(file)),
        }
    }
/// Attempts to create a strong copy of self. If the underlying node has been deleted, returns
/// None.
Attempts to create a strong copy of self. If the underlying node has been deleted, returns
None.
Attempts to create a strong copy of self . If the underlying node has been deleted returns None .
pub fn upgrade(&self) -> Option<FxNode> {
        match self {
            WeakFxNode::Dir(dir) => Weak::upgrade(dir).map(|dir| FxNode::Dir(dir)),
            WeakFxNode::File(file) => Weak::upgrade(file).map(|file| FxNode::File(file)),
        }
    }
pub fn upgrade ( & self ) -> Option < FxNode > { match self { WeakFxNode :: Dir ( dir ) => Weak :: upgrade ( dir ) . map ( | dir | FxNode :: Dir ( dir ) ) , WeakFxNode :: File ( file ) => Weak :: upgrade ( file ) . map ( | file | FxNode :: File ( file ) ) , } }
Attempts to create a strong copy of self.
Attempts to create a strong copy of self .
&self
&self