![]() # Objective There is currently no good way of getting the width (# of components) of a table outside of `bevy_ecs`. # Solution Added the methods `Table::{component_count, component_capacity}` For consistency and clarity, renamed `Table::{len, capacity}` to `entity_count` and `entity_capacity`. ## Changelog - Added the methods `Table::component_count` and `Table::component_capacity` - Renamed `Table::len` and `Table::capacity` to `entity_count` and `entity_capacity` ## Migration Guide Any use of `Table::len` should now be `Table::entity_count`. Any use of `Table::capacity` should now be `Table::entity_capacity`. |
||
---|---|---|
.. | ||
blob_vec.rs | ||
mod.rs | ||
sparse_set.rs | ||
table.rs |