atomio

Crates.ioatomio
lib.rsatomio
version0.1.0
sourcesrc
created_at2022-07-09 09:07:55.61391
updated_at2022-07-09 09:07:55.61391
descriptionCrate to parse chemical formula
homepagehttps://github.com/DevHyperCoder/atomio
repositoryhttps://github.com/DevHyperCoder/atomio
max_upload_size
id622404
size17,942
(DevHyperCoder)

documentation

https://docs.rs/atomio

README

ATOMIO - Crate to parse molecular formula

Parse chemical formula like CH4, Al2(SO4)3, K2Cr2O7 etc.

Usage is simple:

use atomio::{parser::Parsed,element_group::Unit};

let parsed = Parsed::from_str("CH4");
assert!(parsed.root_group, Unit::ElementGroup {count:1, units: vec![
    Unit::Element { count: 1, symbol: "C".into() },
    Unit::Element { count: 4, symbol: "H".into() }
]})

Contributions

Pull Requests and Issues are accepted.

LICENSE

atomio is licensed under the MIT License. Our copy of MIT License can be found here

Commit count: 1

cargo fmt