| Crates.io | chemstring |
| lib.rs | chemstring |
| version | 0.1.0 |
| created_at | 2024-02-05 21:26:36.588624+00 |
| updated_at | 2024-02-05 21:26:36.588624+00 |
| description | A parser that converts strings to their representation using chemical element notations. |
| homepage | |
| repository | https://github.com/Mirch/chemstring |
| max_upload_size | |
| id | 1127984 |
| size | 10,244 |
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.