mscore::chemistry::elements

Function atoms_isotopic_weights

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

Isotopic Weights

§Arguments

None

§Returns

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

§Example

use mscore::chemistry::elements::atoms_isotopic_weights;

let isotopic_weights = atoms_isotopic_weights();
assert_eq!(isotopic_weights.get("H"), Some(&vec![1.00782503223, 2.01410177812]));