save_to_mem

Function save_to_mem 

Source
pub fn save_to_mem<T: WithSchema + Serialize>(
    version: u32,
    data: &T,
) -> Result<Vec<u8>, SavefileError>
Expand description

Serialize the given data and return as a Vec<u8> The current version of data must be version.