[][src]Function savefile::save_file

pub fn save_file<T: WithSchema + Serialize>(
    filepath: &str,
    version: u32,
    data: &T
) -> Result<(), SavefileError>

Like [savefile::save] , except it opens a file on the filesystem and writes the data to it. This is a pure convenience function.