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§
Source§impl<'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> Freeze for EntityBuilder<'a, E>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more