chemstring

Crates.iochemstring
lib.rschemstring
version0.1.0
sourcesrc
created_at2024-02-05 21:26:36.588624
updated_at2024-02-05 21:26:36.588624
descriptionA parser that converts strings to their representation using chemical element notations.
homepage
repositoryhttps://github.com/Mirch/chemstring
max_upload_size
id1127984
size10,244
Mircea Teodor Oprea (Mirch)

documentation

README

ChemString

CI

ChemString provides a parser that allows you to convert a string to its representation(s) using chemical symbols.

Examples

   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));

License

This project is licensed under the MIT license.

Commit count: 0

cargo fmt