Trait velvet_core::properties::Property[][src]

pub trait Property {
    type Res;
    fn calculate(&self, system: &System, potentials: &Potentials) -> Self::Res;
}

Calculates a system-wide property.

Associated Types

type Res[src]

The property's return type.

Loading content...

Required methods

fn calculate(&self, system: &System, potentials: &Potentials) -> Self::Res[src]

Returns a physical property of the system.

Loading content...

Implementors

impl Property for Forces[src]

type Res = Vec<Vector3<f32>>

impl Property for PotentialEnergy[src]

type Res = f32

impl Property for TotalEnergy[src]

type Res = f32

impl<T: IntrinsicProperty> Property for T[src]

type Res = T::Res

Loading content...