Skip to main content

MaximumInteractionRange

Derive Macro MaximumInteractionRange 

Source
#[derive(MaximumInteractionRange)]
Expand description

Automatically implement the hoomd_interaction::MaximumInteractionRange trait.

If the type has a maximum_interaction_range field, the derived implementation returns it. If the type does not, the derived implementation returns the maximum of maximum_interaction_range() of each field.

Valid on:

  • Structs with named fields.
  • Tuple structs.