[]Struct lumol::NullPotential

pub struct NullPotential;

No-op potential.

The NullPotential always returns 0 as energy and force. It should be used to indicate that there is no potential interaction for a given set of particles.


let potential = NullPotential;
assert_eq!(potential.energy(0.1), 0.0);
assert_eq!(potential.energy(100000.0), 0.0);

assert_eq!(potential.force(0.1), 0.0);
assert_eq!(potential.force(100000.0), 0.0);

Trait Implementations

impl AnglePotential for NullPotential

impl BondPotential for NullPotential

impl Clone for NullPotential

impl Copy for NullPotential

impl DihedralPotential for NullPotential

impl FromToml for NullPotential

impl PairPotential for NullPotential

impl Potential for NullPotential

Auto Trait Implementations

impl RefUnwindSafe for NullPotential

impl Send for NullPotential

impl Sync for NullPotential

impl Unpin for NullPotential

impl UnwindSafe for NullPotential

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<P> Potential for P where
    P: 'static + Computation + Clone

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,