[][src]Function savefile::load

pub fn load<T: WithSchema + Deserialize>(
    reader: &mut dyn Read,
    version: u32
) -> Result<T, SavefileError>

Deserialize an instance of type T from the given reader . The current type of T in memory must be equal to version. The deserializer will use the actual protocol version in the file to do the deserialization.