Struct specs::world::LazyBuilder [] [src]

pub struct LazyBuilder<'a> {
    pub entity: Entity,
    pub lazy: &'a LazyUpdate,
}

Like EntityBuilder, but inserts the component lazily, meaning on maintain. If you need those components to exist immediately, you have to insert them into the storages yourself.

Fields

The entity that we're inserting components for.

The lazy update reference.

Methods

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

[src]

Inserts a component using LazyUpdate.

[src]

Finishes the building and returns the built entity. Please note that no component is associated to this entity until you call World::maintain.

Trait Implementations

Auto Trait Implementations

impl<'a> Send for LazyBuilder<'a>

impl<'a> Sync for LazyBuilder<'a>