Trait hecs_schedule::GenericWorld [−][src]
pub trait GenericWorld {
fn query<Q: Query + Subset>(&self) -> QueryBorrow<'_, Q>;
fn query_one<Q: Query + Subset>(
&self,
entity: Entity
) -> Result<QueryOne<'_, Q>, NoSuchEntity>;
fn get<C: Component>(
&self,
entity: Entity
) -> Result<Ref<'_, C>, ComponentError>;
}Expand description
Trait for allowing function to work on both World and SubWorld
Required methods
fn query<Q: Query + Subset>(&self) -> QueryBorrow<'_, Q>
fn query<Q: Query + Subset>(&self) -> QueryBorrow<'_, Q>
Queries the world
Queries the world for a specific entity