pub trait Isotope: ChemElement {
Show 14 methods
// Required methods
fn mass_deficit(&self) -> f64;
fn binding_energy(&self) -> f64;
fn half_life<T: DecayMode>(&self) -> f64;
fn mean_lifetime<T: DecayMode>(&self) -> f64;
fn decay_string(&self) -> String;
fn daughter_energetic<T: DecayMode>(&mut self) -> (f64, Vec<Particle>);
fn daughter<T: DecayMode>(&self) -> Option<Self>;
fn daughter_theoretical<T: DecayMode>(&self) -> Option<Self>;
fn branching_ratio<T: DecayMode>(&self) -> f64;
fn decay_constant<T: DecayMode>(&self) -> f64;
fn decay_probability<T: DecayMode>(&self, time: f64) -> f64;
fn decay_time<T: DecayMode>(&self, time: f64) -> bool;
fn decay<T: DecayMode>(&mut self, time: f64) -> (f64, Vec<Particle>);
fn decay_q<T: DecayMode>(&self) -> f64;
}Expand description
Nuclear properties that vary between isotopes
Required Methods§
Sourcefn mass_deficit(&self) -> f64
fn mass_deficit(&self) -> f64
Mass defect or the difference between the empirical mass and the mass of the constituents, in Daltons
Sourcefn binding_energy(&self) -> f64
fn binding_energy(&self) -> f64
Binding energy in MeV
Sourcefn mean_lifetime<T: DecayMode>(&self) -> f64
fn mean_lifetime<T: DecayMode>(&self) -> f64
The mean lifetime of nuclide in seconds
Sourcefn decay_string(&self) -> String
fn decay_string(&self) -> String
Returns the probable decay modes as a string
Sourcefn daughter_energetic<T: DecayMode>(&mut self) -> (f64, Vec<Particle>)
fn daughter_energetic<T: DecayMode>(&mut self) -> (f64, Vec<Particle>)
Returns the daughter with decay energy
Sourcefn daughter<T: DecayMode>(&self) -> Option<Self>
fn daughter<T: DecayMode>(&self) -> Option<Self>
Returns the daughter nuclide
§None
If nuclide has not been observed to decay by the mode, returns None
Sourcefn daughter_theoretical<T: DecayMode>(&self) -> Option<Self>
fn daughter_theoretical<T: DecayMode>(&self) -> Option<Self>
Returns the daughter nuclide,regardless of whether it has been observed
§None
If impossible to decay by the provided mode
Sourcefn branching_ratio<T: DecayMode>(&self) -> f64
fn branching_ratio<T: DecayMode>(&self) -> f64
Sourcefn decay_constant<T: DecayMode>(&self) -> f64
fn decay_constant<T: DecayMode>(&self) -> f64
Sourcefn decay_probability<T: DecayMode>(&self, time: f64) -> f64
fn decay_probability<T: DecayMode>(&self, time: f64) -> f64
Returns the probability of the nuclide to decay after the time in seconds provided
Sourcefn decay_time<T: DecayMode>(&self, time: f64) -> bool
fn decay_time<T: DecayMode>(&self, time: f64) -> bool
Checks if nuclide probably decay in the selected time.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.