type Stream = msi::StreamReader<'a, File>;
fn limit(&self) -> u64 {
self.limit
}
fn next_file(&mut self) -> Option<(&str, Result<Self::Stream, UnpackError>)> {
let name = self.streams.get(self.position)?;
self.position += 1;
let result = self
.archive
.read_stream(name)
.map_err(UnpackError::ReadFile);
Some((&name, result))
}
}
Подожду GAT...
Обсуждают сегодня