1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! # ms-chem — mass-spectrometry chemistry primitives
//!
//! The L0 leaf of the rustims crate federation: elements, amino-acid residues, sum formulas,
//! isotopes, modifications, and backbone fragments. Pure Rust, no PyO3 — usable by any Rust MS
//! consumer (the simulator is only the first).
//!
//! ## Provenance
//!
//! ms-chem unifies the three chemistry implementations that lived in the rustims monorepo
//! (`mscore/chem`, `rustms/chem`, `timsim-chem`). It is not a fresh guess: every table and formula
//! was chosen from those impls' *differential parity* evidence (`CHEM_PARITY.md`). The canonical
//! semantics:
//!
//! - **Element masses** — identical across impls; adopted verbatim ([`elements`]).
//! - **Residue masses** — *computed from elements*, a single source of truth ([`residue`]).
//! - **Isotopic abundances** — the newer CIAAW values (N/S differed; resolved) — *(isotope module,
//! next increment)*.
//! - **Proton** — full CODATA `1.007276466621` ([`mass::PROTON`]).
//! - **Modifications / fragments** — a unified cross-checked table and typed b/y ions — *(next
//! increments)*.
//!
//! The parity suite that proved the equivalence rides along as ms-chem's regression gate.
pub use FormulaError;
pub use ;
pub use ;
pub use ;
pub use ;
pub use mass_delta as unimod_mass_delta;
pub use ;