/// Insert a value into the map with a specified key type.
Insert a value into the map with a specified key type.
Insert a value into the map with a specified key type .
pub fn put<K: Key>(&mut self, val: K::Value) -> Option<K::Value>
    where
        K::Value: Any + Implements<A>,
    {
        self.data
            .insert(TypeId::of::<K>(), val.into_object())
            .map(|v| unsafe { *v.downcast_unchecked::<K::Value>() })
    }
pub fn put < K : Key > ( & mut self , val : K :: Value ) -> Option < K :: Value > where K :: Value : Any + Implements < A > , { self . data . insert ( TypeId :: of :: < K > ( ) , val . into_object ( ) ) . map ( | v | unsafe { * v . downcast_unchecked :: < K :: Value > ( ) } ) }
Insert a value into the map with a specified key type.
Insert a value into the map with a specified key type .
&mut self
val
K::Value