pub trait ComponentStorage: Sealed {
    const STORAGE_TYPE: StorageType;
Expand description

Types used to specify the storage strategy for a component.

This trait is implemented for TableStorage and SparseStorage. Custom implementations are forbidden.

Required Associated Constants§

const STORAGE_TYPE: StorageType

A value indicating the storage strategy specified by this type.



impl ComponentStorage for SparseStorage


const STORAGE_TYPE: StorageType = StorageType::SparseSet


impl ComponentStorage for TableStorage


const STORAGE_TYPE: StorageType = StorageType::Table