pub fn try_get_mut<C: Component>(&mut self, key: &str) -> Option<&mut C> {
        if let Some(e) = self.registry.get_mut(&key.to_string()) {
            if let Some(r) = e.downcast_mut() {
                return Some(r);
            }
        }

        None
    }
/// Try to get an element from the registry.
Try to get an element from the registry.
Try to get an element from the registry .
pub fn try_get_mut<C: Component>(&mut self, key: &str) -> Option<&mut C> {
        if let Some(e) = self.registry.get_mut(&key.to_string()) {
            if let Some(r) = e.downcast_mut() {
                return Some(r);
            }
        }
        None
    }
pub fn try_get_mut < C : Component > ( & mut self , key : & str ) -> Option < & mut C > { if let Some ( e ) = self . registry . get_mut ( & key . to_string ( ) ) { if let Some ( r ) = e . downcast_mut ( ) { return Some ( r ) ; } } None }
Try to get an element from the registry.
Try to get an element from the registry .
&mut self
key
&str