pub fn write_component<T>(&self) -> Result<ComponentWriteHandle<T>, UnregisteredComponent>
    where
        T: 'static + Component,
    {
        let w = self
            .components
            .get(&TypeId::of::<T>())
            .ok_or(UnregisteredComponent)?
            .downcast_ref::<ComponentEntry<T::Storage>>()
            .expect("improper ComponentEntry type")
            .write();
        Ok(ComponentHandle(w, &self.entities))
    }
/// Get a read/write handle to a component storage by acquiring a write lock on that component
/// storage.
Get a read/write handle to a component storage by acquiring a write lock on that component
storage.
Get a read / write handle to a component storage by acquiring a write lock on that component storage .
pub fn write_component<T>(&self) -> Result<ComponentWriteHandle<T>, UnregisteredComponent>
    where
        T: 'static + Component,
    {
        let w = self
            .components
            .get(&TypeId::of::<T>())
            .ok_or(UnregisteredComponent)?
            .downcast_ref::<ComponentEntry<T::Storage>>()
            .expect("improper ComponentEntry type")
            .write();
        Ok(ComponentHandle(w, &self.entities))
    }
pub fn write_component < T > ( & self ) -> Result < ComponentWriteHandle < T > , UnregisteredComponent > where T : ' static + Component , { let w = self . components . get ( & TypeId :: of :: < T > ( ) ) . ok_or ( UnregisteredComponent ) ? . downcast_ref :: < ComponentEntry < T :: Storage > > ( ) . expect ( " " ) . write ( ) ; Ok ( ComponentHandle ( w , & self . entities ) ) }
Get a read/write handle to a component storage by acquiring a write lock on that component
storage.
Get a read / write handle to a component storage by acquiring a write lock on that component storage .
&self
&self