pub struct Entities<'a> { /* private fields */ }
Expand description

A useful struct for building a lot of entities

Implementations

Attach components to all entities

Panics
  • Panics if T has not been registered
  • Panics if components.len() is not equal to the count of entities

Get ID range

Details

Because create_entites() ensure the id is continuous, so we can just return the range of EntityId for optimization

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.