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

Finishing the creation of the entity.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.