Skip to content

Mirch/chemstring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChemString

CI crates

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.

About

A parser that converts strings to their representation using chemical symbols.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages