Function savefile::save [−][src]
pub fn save<T: WithSchema + Serialize>(
writer: &mut dyn Write,
version: u32,
data: &T
) -> Result<(), SavefileError>
Expand description
Write the given data
to the writer
.
The current version of data must be version
.