/// Return a mutable reference to the requested entity's component of type `C`, or a
/// `NotFound` variant if the entity does not exist or does not have that component.
Return a mutable reference to the requested entity's component of type `C`, or a
`NotFound` variant if the entity does not exist or does not have that component.
Return a mutable reference to the requested entity ' s component of type ` C ` or a ` NotFound ` variant if the entity does not exist or does not have that component .
pub fn borrow_mut<C: Component>(&mut self, id: EntityId) -> EcsResult<&mut C> {
        self.data
            .get_mut(&id)
            .ok_or_else(|| NotFound::Entity(id))
            .and_then(|map| map.borrow_mut())
    }
pub fn borrow_mut < C : Component > ( & mut self , id : EntityId ) -> EcsResult < & mut C > { self . data . get_mut ( & id ) . ok_or_else ( | | NotFound :: Entity ( id ) ) . and_then ( | map | map . borrow_mut ( ) ) }
Return a mutable reference to the requested entity's component of type `C`, or a
`NotFound` variant if the entity does not exist or does not have that component.
Return a mutable reference to the requested entity ' s component of type ` C ` or a ` NotFound ` variant if the entity does not exist or does not have that component .
&mut self
id
EntityId