pub struct CustomForce { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Force for CustomForce
impl Force for CustomForce
Source§fn system_name(&self) -> &str
fn system_name(&self) -> &str
Returns Read more
Source§fn potential(&self, particle: &Particle, other: &Particle) -> f64
fn potential(&self, particle: &Particle, other: &Particle) -> f64
Calculates the potential energy between two particles.
Auto Trait Implementations§
impl Freeze for CustomForce
impl !RefUnwindSafe for CustomForce
impl !Send for CustomForce
impl !Sync for CustomForce
impl Unpin for CustomForce
impl !UnwindSafe for CustomForce
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more