pub fn downcast<T: any::Any>(self) -> Result<StaticRcRef<'a, T, NUM, DEN>, Self> {
        if Self::get_ref(&self).is::<T>() {
            let pointer = Self::into_raw(self).cast::<T>();
            Ok(StaticRcRef { pointer, _marker: PhantomData, })
        } else {
            Err(self)
        }
    }
/// Attempts to downcast `Self` to a concrete type.
Attempts to downcast `Self` to a concrete type.
Attempts to downcast ` Self ` to a concrete type .
pub fn downcast<T: any::Any>(self) -> Result<StaticRcRef<'a, T, NUM, DEN>, Self> {
        if Self::get_ref(&self).is::<T>() {
            let pointer = Self::into_raw(self).cast::<T>();
            Ok(StaticRcRef { pointer, _marker: PhantomData, })
        } else {
            Err(self)
        }
    }
pub fn downcast < T : any :: Any > ( self ) -> Result < StaticRcRef < ' a , T , NUM , DEN > , Self > { if Self :: get_ref ( & self ) . is :: < T > ( ) { let pointer = Self :: into_raw ( self ) . cast :: < T > ( ) ; Ok ( StaticRcRef { pointer , _marker : PhantomData , } ) } else { Err ( self ) } }
Attempts to downcast `Self` to a concrete type.
Attempts to downcast ` Self ` to a concrete type .
self
self