Skip to main content

DeltaEnergyRemove

Derive Macro DeltaEnergyRemove 

Source
#[derive(DeltaEnergyRemove)]
Expand description

Automatically implement the hoomd_interaction::DeltaEnergyRemove trait.

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

Valid on:

  • Structs with named fields.
  • Tuple structs.