Struct dces::component::EntityBuilder
source · [−]pub struct EntityBuilder<'a, E> where
E: EntityStore, {
pub entity: Entity,
pub component_store: &'a mut ComponentStore,
pub entity_store: &'a mut E,
}
Expand description
The entity builder is used to create an entity with components.
Fields
entity: Entity
The created entity.
component_store: &'a mut ComponentStore
Reference to the component store.
entity_store: &'a mut E
Reference to the entity store.
Implementations
sourceimpl<'a, E> EntityBuilder<'a, E> where
E: EntityStore,
impl<'a, E> EntityBuilder<'a, E> where
E: EntityStore,
pub fn components(
self,
components: (BuildComponents, BuildSharedComponents)
) -> Self
Auto Trait Implementations
impl<'a, E> !RefUnwindSafe for EntityBuilder<'a, E>
impl<'a, E> !Send for EntityBuilder<'a, E>
impl<'a, E> !Sync for EntityBuilder<'a, E>
impl<'a, E> Unpin for EntityBuilder<'a, E>
impl<'a, E> !UnwindSafe for EntityBuilder<'a, E>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more