pub fn borrow<C: Component>(&self, id: EntityId) -> EcsResult<&C> {
        self.data
            .get(&id)
            .ok_or_else(|| NotFound::Entity(id))
            .and_then(|map| map.borrow())
    }
/// Return a shared 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 shared 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 shared 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<C: Component>(&self, id: EntityId) -> EcsResult<&C> {
        self.data
            .get(&id)
            .ok_or_else(|| NotFound::Entity(id))
            .and_then(|map| map.borrow())
    }
pub fn borrow < C : Component > ( & self , id : EntityId ) -> EcsResult < & C > { self . data . get ( & id ) . ok_or_else ( | | NotFound :: Entity ( id ) ) . and_then ( | map | map . borrow ( ) ) }
Return a shared 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 shared 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 .
&self
id
EntityId
&self
id
EntityId