pub struct EntityStorage { /* private fields */ }
Expand description

A container of entities.

Implementations

Creates an empty EntityStorage.

Creates a new entity and returns its identifier.

Returns a reference to the specified archetype.

Returns a mutable reference to the specified archetype.

Returns a reference to the component C of the specified entity.

Returns a mutable reference to the component C of the specified entity.

Removes an entity from the storage. Returns true if the entity was present in the storage.

Returns the number of entities in the storage.

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.