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