pub struct Combined<T, U>(/* private fields */);Expand description
Combine two twobody pair potentials.
This works with both static and dynamic dispatch.
For dynamic dispatch, Box<dyn IsotropicTwobodyEnergy>
can be aggregated using the + operator.
Implementations§
Source§impl<T: IsotropicTwobodyEnergy, U: IsotropicTwobodyEnergy> Combined<T, U>
impl<T: IsotropicTwobodyEnergy, U: IsotropicTwobodyEnergy> Combined<T, U>
Trait Implementations§
impl<T: Eq, U: Eq> Eq for Combined<T, U>
Source§impl<T: IsotropicTwobodyEnergy + Clone, U: IsotropicTwobodyEnergy + Clone> IsotropicTwobodyEnergy for Combined<T, U>
impl<T: IsotropicTwobodyEnergy + Clone, U: IsotropicTwobodyEnergy + Clone> IsotropicTwobodyEnergy for Combined<T, U>
impl<T: PartialEq, U: PartialEq> StructuralPartialEq for Combined<T, U>
Auto Trait Implementations§
impl<T, U> Freeze for Combined<T, U>
impl<T, U> RefUnwindSafe for Combined<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for Combined<T, U>
impl<T, U> Sync for Combined<T, U>
impl<T, U> Unpin for Combined<T, U>
impl<T, U> UnsafeUnpin for Combined<T, U>where
T: UnsafeUnpin,
U: UnsafeUnpin,
impl<T, U> UnwindSafe for Combined<T, U>where
T: UnwindSafe,
U: UnwindSafe,
Blanket Implementations§
Source§impl<T> AnisotropicTwobodyEnergy for Twhere
T: IsotropicTwobodyEnergy,
impl<T> AnisotropicTwobodyEnergy for Twhere
T: IsotropicTwobodyEnergy,
Source§fn anisotropic_twobody_energy(&self, orientation: &RelativeOrientation) -> f64
fn anisotropic_twobody_energy(&self, orientation: &RelativeOrientation) -> f64
Interaction energy between a pair of anisotropic particles, 𝑈(𝒓).
Source§fn anisotropic_twobody_force(
&self,
orientation: &RelativeOrientation,
) -> Vector3<f64>
fn anisotropic_twobody_force( &self, orientation: &RelativeOrientation, ) -> Vector3<f64>
Force magnitude due to an anisotropic interaction potential, 𝐹(𝒓) = -𝞩𝑈(𝒓)
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.