use-atomic-mass 0.1.0

Average atomic mass helpers for RustUse chemistry crates
Documentation
  • Coverage
  • 100%
    5 out of 5 items documented2 out of 5 items with examples
  • Size
  • Source code size: 6.92 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 263.23 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 17s Average build duration of successful builds.
  • all releases: 17s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-chemistry
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-atomic-mass

Surface

Item Purpose
atomic_mass_by_symbol() Look up an average atomic mass by element symbol
atomic_mass_by_atomic_number() Look up an average atomic mass by atomic number
average_atomic_mass() Named alias for symbol-based average atomic mass lookup
molar_mass_element() Elemental molar mass helper in grams per mole

Example

use use_atomic_mass::{atomic_mass_by_symbol, molar_mass_element};

assert!((atomic_mass_by_symbol("C").unwrap() - 12.011).abs() < 0.01);
assert!((molar_mass_element("O").unwrap() - 15.999).abs() < 0.01);