Function nannou::io::load_from_json

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

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