Module ecstatic::storage[][src]

Expand description

Component storage infrastructure

Structs

BasicVecStorage

ComponentStorage that is just Vec<Option<T>>.

ReadComponent

Read-only view of a Component storage.

ReadResource

Read-only view of a resource.

VoidStorage

Storage for zero-size types. It’s technically possible to use this for anything that implements Default, but you will always get the output of default() when you iterate over it. Also, this storage does not implement MutableComponentStorage, since there would be no point in iterating over it in a mutable fashion.

VoidStorageIter

Iterator for VoidStorage<T>.

WriteComponent

Read/write view of a Component storage.

WriteResource

Read/write view of a resource.

Traits

ComponentStorage

Trait that all component storage types must implement.

MutableComponentStorage

Trait that component storage may optionally implement if it supports in-place modification.

StorageSpec

Specifies how a component is stored.