Struct ecs::world::DataHelper
[−]
[src]
pub struct DataHelper<C, M> where
C: ComponentManager,
M: ServiceManager, {
pub components: C,
pub services: M,
// some fields omitted
}
Fields
components: C
services: M
Methods
impl<C: ComponentManager, M: ServiceManager> DataHelper<C, M>
[src]
fn with_entity_data<F, R>(&mut self, entity: &Entity, call: F) -> Option<R> where
F: FnMut(EntityData<C>, &mut C) -> R,
F: FnMut(EntityData<C>, &mut C) -> R,
fn create_entity<B>(&mut self, builder: B) -> Entity where
B: EntityBuilder<C>,
B: EntityBuilder<C>,
fn remove_entity(&mut self, entity: Entity)
Trait Implementations
impl<C: ComponentManager, M: ServiceManager> Deref for DataHelper<C, M>
[src]
type Target = C
The resulting type after dereferencing
fn deref(&self) -> &C
The method called to dereference a value
impl<C: ComponentManager, M: ServiceManager> DerefMut for DataHelper<C, M>
[src]
fn deref_mut(&mut self) -> &mut C
The method called to mutably dereference a value