pub(crate) fn is_valid(&self) -> bool {
        match self {
            Self::None => false,
            Self::Weak(weak_ref) => weak_ref.strong_count() > 0,
            Self::Strong(_) => true,
        }
    }
/// Returns true if the number of strong references to this node or property
/// is greater than 0.
Returns true if the number of strong references to this node or property
is greater than 0.
Returns true if the number of strong references to this node or property is greater than 0 .
pub(crate) fn is_valid(&self) -> bool {
        match self {
            Self::None => false,
            Self::Weak(weak_ref) => weak_ref.strong_count() > 0,
            Self::Strong(_) => true,
        }
    }
pub ( crate ) fn is_valid ( & self ) -> bool { match self { Self :: None => false , Self :: Weak ( weak_ref ) => weak_ref . strong_count ( ) > 0 , Self :: Strong ( _ ) => true , } }
Returns true if the number of strong references to this node or property
is greater than 0.
Returns true if the number of strong references to this node or property is greater than 0 .
&self
&self