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.

AttributeTraitImplemented
BaseSubDomain
SortCellsSortCells
MechanicsSubDomainMechanics
ForceSubDomainForce
ReactionsSubDomainReactions

§Example Usage

#[derive(SubDomain)]
struct MyDerivedSubDomain {
    #[Base]
    s: MySubDomain,
}