Function nannou::io::load_from_toml

source ·
pub fn load_from_toml<'a, P, T>(path: P) -> Result<T, TomlFileLoadError>
where P: AsRef<Path>, T: for<'de> Deserialize<'de>,
Expand description

A generic funtion for loading a type from a TOML file.