Function load_nuclide
pub fn load_nuclide<N>(nuclide: N, rad_type: RadType) -> Option<RecordSet>Expand description
Load single nuclide from pre-fetched data
Retrieve the RecordSet for the specified nuclide. Will return None if
the nuclide is not found or contains no Records for the
decay radiation type.
Note this will accept a Nuclide or any &str, String, or &String that
will parse into a Nuclide.
For example:
// Try to get the records for Sodium-22
let records: Vec<Record> = load_nuclide("na22", RadType::Gamma).unwrap();
// Print the gamma energies
for r in records {
println!("{} keV", r.energy.display())
}1274.537 keV
511 keV
0.848 keV
0.848 keVFor details of the data structure and associated convenience methods see the Record type.