Function load_config
Source pub fn load_config<P: AsRef<Path>>(path: P) -> Result<SystemConfig>
Expand description
Load configuration from a TOML file.
§Errors
Returns an error if the file cannot be read or parsed.
§Example
ⓘuse stepper_motion::load_config;
let config = load_config("motion.toml")?;