Skip to main content

DeltaEnergyInsert

Derive Macro DeltaEnergyInsert 

Source
#[derive(DeltaEnergyInsert)]
Expand description

Automatically implement the hoomd_interaction::DeltaEnergyInsert trait.

The implemented delta_energy_insert sums the result of delta_energy_insert over all fields. The implementation returns early when any one field returns infinity.

Valid on:

  • Structs with named fields.
  • Tuple structs.