mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Add deconstruct
method to ProgressReader
This commit is contained in:
parent
6e247efc1c
commit
db9df3dfc9
@ -25,6 +25,11 @@ impl<R: Read> ProgressReader<R> {
|
|||||||
counter: counter,
|
counter: counter,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Unwraps this `ProgressReader`, returning the reader and counter.
|
||||||
|
pub fn deconstruct(self) -> (R, Counter) {
|
||||||
|
(self.reader, self.counter)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<R: Read> Read for ProgressReader<R> {
|
impl<R: Read> Read for ProgressReader<R> {
|
||||||
|
Loading…
Reference in New Issue
Block a user