Expand description
This module supports two user-facing patterns:
- initializing a new entity with
ContextEntitiesExt::add_entity, and - specifying strata for value-change counting APIs such as
ContextEntitiesExt::track_periodic_value_change_counts.
For add_entity, pass either:
- the entity type directly, such as
Person, to use default property values, or with!to provide one or more initial property values, such aswith!(Person, Age(25), InfectionStatus::Infected).
For value-change counting APIs, use tuple types in the generic parameter list, such as
(InfectionStatus,) or (AgeGroup, InfectionStatus).
In both cases, all properties must belong to the same entity, and property values must be distinct.
Traitsยง
- Property
Initialization List - Values accepted by
ContextEntitiesExt::add_entity. - Property
List