Expand description
Parse molecule files in the .mol
file format.
§Example
// Read a molecule data file as a string of lines
let molfile = fs::read_to_string(path)?;
let molecule = loader::parse_molfile_str(&molfile).expect("Cannot parse molfile");
Enums§
- Parser
Error - Molecule data file parsing functions return a
ParserError
type when an error occurs.
Functions§
- parse_
molfile_ str - Parse a string containing the contents of a
.mol
molecule data file and return acrate::molecule::Molecule
object. - parse_
sdfile_ str - Parse a
.sdf
molecule data file and return acrate::molecule::Molecule
object.To be implemented