Function chemfiles::add_configuration[][src]

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

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.

Errors

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

Example

chemfiles::add_configuration("local-config.toml").unwrap();
// from now on, the data from "local-config.toml" will be used