pub(crate) fn try_deref(&self) -> Option<&T> {
        if self.is_dangling() {
            None
        } else {
            Some(self.as_ref())
        }
    }
/// Gives a reference to the inner value if it is not dangling, otherwise, None.
Gives a reference to the inner value if it is not dangling, otherwise, None.
Gives a reference to the inner value if it is not dangling otherwise None .
pub(crate) fn try_deref(&self) -> Option<&T> {
        if self.is_dangling() {
            None
        } else {
            Some(self.as_ref())
        }
    }
pub ( crate ) fn try_deref ( & self ) -> Option < & T > { if self . is_dangling ( ) { None } else { Some ( self . as_ref ( ) ) } }
Gives a reference to the inner value if it is not dangling, otherwise, None.
Gives a reference to the inner value if it is not dangling otherwise None .
&self