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§
Sourcefn potential(&self, z: u8) -> Result<Box<dyn ScreenedPotential>, ElasticError>
fn potential(&self, z: u8) -> Result<Box<dyn ScreenedPotential>, ElasticError>
The potential of element z.
Sourcefn description(&self) -> String
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".