pub fn save<T: WithSchema + Serialize>( writer: &mut impl Write, version: u32, data: &T ) -> Result<(), SavefileError>
Write the given data to the writer. The current version of data must be version.
data
writer
version