pub fn composition_formula(counts: &[(String, u32)]) -> String
Canonical multiset formula: sorted non-empty Sym:count joined by |. Example: Cu₂H₂ → Cu:2|H:2. Shared with campaign idx_formula keys.
Sym:count
|
Cu:2|H:2
idx_formula