Expand description
Parse molecules in the .mol
file format.
§Example
use assembly_theory::loader::parse_molfile_str;
let path = PathBuf::from(format!("./data/checks/anthracene.mol"));
let molfile = fs::read_to_string(path)?;
let anthracene = parse_molfile_str(&molfile).expect("Parsing failure.");
Enums§
- Parser
Error - Thrown by
parse_molfile_str
when errors occur.
Functions§
- parse_
molfile_ str - Parse the contents of a
.mol
file as aMolecule
.