Function load_available

pub fn load_available(rad_type: RadType) -> Result<Vec<Nuclide>, Error>
Expand description

Load a list of nuclides available in pre-fetched data

Returns a list of Nuclides consistent with the fetch_available() convenience function.

For example:

/// Collect all available nuclides in the API
let nuclides: Vec<Nuclide> = load_available(RadType::Gamma).unwrap();

/// Print out the names
for nuclide in &nuclides {
    println!("{}", nuclide.name());
}

Which will output the full list of all pre-processed nuclides by name.

H1, H2, H3, ... Ts293, Ts294, Og294