Expand description
A special kind of arena that can support storing multiple data types.
Repo
provides storage for multiple data types, it provides
its own kind of index handle called EntityId
and its own kind of typed
handle called EntityPtr<T>
. With these handles it allows the values
resident in the same Repo
to reference each other easily.
The data behind the EntityPtr<T>
handle can be accessed when you have
a corresponding reference to the whole repository.
The data behind the EntityId
handle can be accessed when you know its
type and have a corresponding reference to the whole repository.
Note that these handles may be reused after remove operation is executed.
Modules§
- prealloc_
tx - Transaction for
Repo
that supports preallocation.
Structs§
- Entity
Id - An index handle to a value in repository.
- Entity
Ptr - A pointer handle to a value in repository.
- Repo
- A special kind of arena that can support storing multiple data types.
Enums§
- Error
- Error raised during
Repo
operation.