Function nannou::io::save_to_json

source ·
pub fn save_to_json<P, T>(path: P, t: &T) -> Result<(), JsonFileError>
where P: AsRef<Path>, T: Serialize,
Expand description

A generic function for safely saving a serializable type to a JSON file.