Function fetch_available

pub fn fetch_available() -> Result<Vec<Nuclide>, Error>
Expand description

Fetch a list of known nuclides

This will query the IAEA chart of nuclides with fields=ground_states&nuclides=all to find all known nuclides.

For example:

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

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

Which will output the full list of all known nuclides by name.

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