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.
type MutRefType = &'s mut C
type MutSliceType = &'s mut [C]
Auto Trait Implementations
impl RefUnwindSafe for DefaultAllocator
impl Send for DefaultAllocator
impl Sync for DefaultAllocator
impl Unpin for DefaultAllocator
impl UnwindSafe for DefaultAllocator