Module entity

Source
Expand description

The entity module, with common helpers for Rust structures

Modules§

packed_option
Compact representation of Option<T> for types with a reserved value.

Macros§

entity_impl
Macro which provides the common implementation of a 32-bit entity reference.

Structs§

BoxedSlice
A slice mapping K -> V allocating dense entity references.
Iter
Iterate over all keys in order.
IterMut
Iterate over all keys in order.
Keys
Iterate over all keys in order.
PrimaryMap
A primary mapping K -> V allocating dense entity references.
SecondaryMap
A mapping K -> V for densely indexed entity references.

Traits§

EntityRef
A type wrapping a small integer index should implement EntityRef so it can be used as the key of an SecondaryMap or SparseMap.