Module entity

Source
Expand description

The entity module, with common helpers for Rust structures

Modulesยง

boxed_slice ๐Ÿ”’
Boxed slices for PrimaryMap.
iter ๐Ÿ”’
A double-ended iterator over entity references and entities.
keys ๐Ÿ”’
A double-ended iterator over entity references.
packed_option
Compact representation of Option<T> for types with a reserved value.
primary_map ๐Ÿ”’
Densely numbered entity references as mapping keys.
secondary_map ๐Ÿ”’
Densely numbered entity references as mapping keys.

Macrosยง

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

Structsยง

ArchivedPrimaryMap
An archived PrimaryMap
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.