pub fn deserialize_snapshot_data_file<T: Sized>( data_file_path: &Path, deserializer: impl FnOnce(&mut BufReader<File>) -> Result<T>, ) -> Result<T>