chemstring 0.1.0

A parser that converts strings to their representation using chemical element notations.
Documentation
  • Coverage
  • 45.45%
    5 out of 11 items documented1 out of 6 items with examples
  • Size
  • Source code size: 11.35 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.68 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Mirch/chemstring
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Mirch

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.