Skip to main content

PotentialSource

Trait PotentialSource 

Source
pub trait PotentialSource: Sync {
    // Required methods
    fn potential(
        &self,
        z: u8,
    ) -> Result<Box<dyn ScreenedPotential>, ElasticError>;
    fn description(&self) -> String;
}
Expand description

Supplies the atomic screened potential of each element.

Required Methods§

Source

fn potential(&self, z: u8) -> Result<Box<dyn ScreenedPotential>, ElasticError>

The potential of element z.

Source

fn description(&self) -> String

One line naming the potential model and its origin. It is written into the table’s model and provenance strings.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§