Function parse_file
Source pub fn parse_file<P: AsRef<Path>>(path: P) -> Result<Config>
Expand description
Parse a TOML configuration file.
§Errors
Returns an error if the file cannot be read or the TOML is invalid.
§Example
use derive_defs::parser;
let config = parser::parse_file("derive_defs.toml").unwrap();