pub fn add_configuration<S>(path: S) -> Result<(), Error>where
    S: AsRef<str>,
Expand description

Read configuration data from the file at path.

By default, chemfiles reads configuration from any file named .chemfiles.toml in the current directory or any parent directory. This function can be used to add data from another configuration file. Data from the new configuration file will overwrite any existing data.


This function will fail if there is no file at path, or if the file is incorrectly formatted.


// from now on, the data from "local-config.toml" will be used