pub trait PairPotential {
// Required methods
fn cutoff(&self) -> f64;
fn pair_energy(&self, r: f64) -> f64;
fn pair_force_magnitude(&self, r: f64) -> f64;
fn name(&self) -> &str;
}pub trait PairPotential {
// Required methods
fn cutoff(&self) -> f64;
fn pair_energy(&self, r: f64) -> f64;
fn pair_force_magnitude(&self, r: f64) -> f64;
fn name(&self) -> &str;
}