Function nannou::io::save_to_json [−][src]
pub fn save_to_json<P, T>(path: P, t: &T) -> Result<(), JsonFileError> where
P: AsRef<Path>,
T: Serialize,
A generic function for safely saving a serializable type to a JSON file.