Skip to main content

Cutoff

Trait Cutoff 

Source
pub trait Cutoff {
    // Required method
    fn cutoff(&self) -> f64;

    // Provided methods
    fn cutoff_squared(&self) -> f64 { ... }
    fn lower_cutoff(&self) -> f64 { ... }
    fn is_finite(&self) -> bool { ... }
}
Expand description

Defines a spherical cut-off distance

Required Methods§

Source

fn cutoff(&self) -> f64

Cutoff distance (upper)

Provided Methods§

Source

fn cutoff_squared(&self) -> f64

Squared cutoff distance

Source

fn lower_cutoff(&self) -> f64

Cutoff distance (lower)

Source

fn is_finite(&self) -> bool

Test if cutoff is finite

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Cutoff for Box<dyn IsotropicTwobodyEnergy>

Source§

fn cutoff(&self) -> f64

Source§

fn lower_cutoff(&self) -> f64

Implementors§