#[derive(TotalEnergy)]Expand description
Automatically implement the hoomd_interaction::TotalEnergy trait.
The implemented total_energy sums the result of total_energy
over all fields. The implementation returns early when any one field returns
infinity.
Valid on:
- Structs with named fields.
- Tuple structs.