/// Attempt to get a value from the type map.
Attempt to get a value from the type map.
Attempt to get a value from the type map .
pub fn try_get<K: Key>(&self) -> Option<&K::Value>
    where
        K::Value: Any + Implements<A>,
    {
        self.data
            .get(&TypeId::of::<K>())
            .map(|v| unsafe { v.downcast_ref_unchecked::<K::Value>() })
    }
pub fn try_get < K : Key > ( & self ) -> Option < & K :: Value > where K :: Value : Any + Implements < A > , { self . data . get ( & TypeId :: of :: < K > ( ) ) . map ( | v | unsafe { v . downcast_ref_unchecked :: < K :: Value > ( ) } ) }
Attempt to get a value from the type map.
Attempt to get a value from the type map .
&self