pub fn save_file<T: WithSchema + Serialize, P: AsRef<Path>>(
filepath: P,
version: u32,
data: &T
) -> Result<(), SavefileError>
Expand description
Like crate::save , except it opens a file on the filesystem and writes the data to it. This is a pure convenience function.