Struct specs::EntityBuilder [] [src]

pub struct EntityBuilder<'a>(_, _);

Helper builder for entities.

Methods

impl<'a> EntityBuilder<'a>
[src]

fn with<T: Component>(self, value: T) -> EntityBuilder<'a>

Add a component value to the new entity.

fn build(self) -> Entity

Finish entity construction.