pub trait DecayEnergyProvider {
// Required method
fn decay_energy_mev(&self, nucid: u32) -> Option<f64>;
}Expand description
Source of per-nuclide mean recoverable decay energies in MeV per decay.
Like MassProvider, injected as a trait so analytics never hard-depend
on decay-energy data availability. Kept separate from DecayProvider
(which supplies decay constants) so depletion callers can mix sources;
nucleide_nuclei::data::DecayData implements this trait, giving Stream A
a single provider for both without any material↔depletion coupling
(material never depends on depletion; nuclei never depends on material).
Required Methods§
Sourcefn decay_energy_mev(&self, nucid: u32) -> Option<f64>
fn decay_energy_mev(&self, nucid: u32) -> Option<f64>
Mean recoverable energy per decay of the nuclide identified by raw
nucid, in MeV, 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".