Skip to main content

DecayProvider

Trait DecayProvider 

Source
pub trait DecayProvider {
    // Required method
    fn decay_constant(&self, nucid: u32) -> Option<f64>;
}
Expand description

Source of per-nuclide decay constants λ in inverse seconds.

Like MassProvider, injected as a trait so analytics never hard-depend on decay data availability.

Required Methods§

Source

fn decay_constant(&self, nucid: u32) -> Option<f64>

Decay constant of the nuclide identified by raw nucid, or None if unknown (stable nuclides included).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§