rustms::chemistry::element

Function isotopic_abundance

Source
pub fn isotopic_abundance() -> HashMap<&'static str, Vec<f64>>
Expand description

Isotopic Abundance

§Arguments

None

§Returns

  • HashMap<&'static str, Vec<f64>> - a map of atomic symbols to their isotopic abundances

§Example

use rustms::chemistry::element::isotopic_abundance;

let isotopic_abundance = isotopic_abundance();
assert_eq!(isotopic_abundance.get("H"), Some(&vec![0.999885, 0.000115]));