Derive Macro SubDomain
#[derive(SubDomain)]
{
// Attributes available to this derive:
#[Base]
#[SortCells]
#[Mechanics]
#[Force]
#[Reactions]
}
Expand description
This trait derives the different aspects of a SubDomain.
It serves similarly as the cellular_raza_concepts_derive::CellAgent trait to quickly build new structures from already existing functionality.
Attribute | Trait | Implemented |
---|---|---|
Base | SubDomain | ✅ |
SortCells | SortCells | ✅ |
Mechanics | SubDomainMechanics | ✅ |
Force | SubDomainForce | ✅ |
Reactions | SubDomainReactions | ❌ |
§Example Usage
#[derive(SubDomain)]
struct MyDerivedSubDomain {
#[Base]
s: MySubDomain,
}