ChemString provides a parser that allows you to convert a string to its representation(s) using chemical symbols.
use chemstring::ChemString;
let chem_string = ChemString::parse("seal").unwrap();
assert_eq!(chem_string, vec!["Se", "Al"]);
let chem_string = ChemString::parse("bichon").unwrap();
let possible_permutation = "Bi C H O N".to_string();
assert!(chem_string.results().contains(&possible_permutation));
This project is licensed under the MIT license.