[−][src]Function savefile::save_file
pub fn save_file<T: WithSchema + Serialize>(
filepath: &str,
version: u32,
data: &T
) -> Result<(), SavefileError>
Like crate::save , except it opens a file on the filesystem and writes the data to it. This is a pure convenience function.