Module loader

Source
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§

ParserError
Thrown by parse_molfile_str when errors occur.

Functions§

parse_molfile_str
Parse the contents of a .mol file as a Molecule.