Function nannou::io::load_from_json[][src]

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

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