#[repr(C)]pub struct EnergyDiff<T: Real> {
pub energy: T,
pub diff: T,
}Expand description
Standard output for most potentials (2-body, 3-body, 4-body).
Contains the scalar potential energy and a single derivative factor used to compute forces or torques in the upper geometry layer.
Fields§
§energy: T§diff: TTrait Implementations§
Source§impl<T: Clone + Real> Clone for EnergyDiff<T>
impl<T: Clone + Real> Clone for EnergyDiff<T>
Source§fn clone(&self) -> EnergyDiff<T>
fn clone(&self) -> EnergyDiff<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Default + Real> Default for EnergyDiff<T>
impl<T: Default + Real> Default for EnergyDiff<T>
Source§fn default() -> EnergyDiff<T>
fn default() -> EnergyDiff<T>
Returns the “default value” for a type. Read more
impl<T: Copy + Real> Copy for EnergyDiff<T>
impl<T: Real> StructuralPartialEq for EnergyDiff<T>
Auto Trait Implementations§
impl<T> Freeze for EnergyDiff<T>where
T: Freeze,
impl<T> RefUnwindSafe for EnergyDiff<T>where
T: RefUnwindSafe,
impl<T> Send for EnergyDiff<T>where
T: Send,
impl<T> Sync for EnergyDiff<T>where
T: Sync,
impl<T> Unpin for EnergyDiff<T>where
T: Unpin,
impl<T> UnwindSafe for EnergyDiff<T>where
T: UnwindSafe,
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