Struct shard_ecs::DefaultAllocator[][src]

pub struct DefaultAllocator;
Expand description

Default allocator for components. Allocates in AoS fashion, storing components sequantially in memory.

Trait Implementations

Writes a component into the pool.

Reads a component from a pool.

Calls the drop handler on the component at the given index.

Moves a component from the source pool into the destination pool. Does not call drop.

Returns a reference to the component.

Returns a mutable reference to the component.

Returns a slice to the components.

Returns a mutable slice to the components.

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

Performs the conversion.

Performs the conversion.

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.