/// Returns a `Some(Arc<InnerRef>)` iff the node or property is currently
/// attached to inspect, or `None` otherwise. Weak pointers are upgraded
/// if possible, but their lifetime as strong references are expected to be
/// short.
Returns a `Some(Arc)` iff the node or property is currently
attached to inspect, or `None` otherwise. Weak pointers are upgraded
if possible, but their lifetime as strong references are expected to be
short.
Returns a ` Some ( Arc ) ` iff the node or property is currently attached to inspect or ` None ` otherwise . Weak pointers are upgraded if possible but their lifetime as strong references are expected to be short .
pub(crate) fn inner_ref(&self) -> Option<Arc<InnerRef<T>>> {
        match self {
            Self::None => None,
            Self::Weak(weak_ref) => weak_ref.upgrade(),
            Self::Strong(inner_ref) => Some(Arc::clone(inner_ref)),
        }
    }
pub ( crate ) fn inner_ref ( & self ) -> Option < Arc < InnerRef < T > > > { match self { Self :: None => None , Self :: Weak ( weak_ref ) => weak_ref . upgrade ( ) , Self :: Strong ( inner_ref ) => Some ( Arc :: clone ( inner_ref ) ) , } }
Returns a `Some(Arc<InnerRef>)` iff the node or property is currently
attached to inspect, or `None` otherwise.
Returns a ` Some ( Arc<InnerRef > ) ` iff the node or property is currently attached to inspect or ` None ` otherwise .
&self