| 4 | /// Abstraction over a reader which hashes the data being read |
| 5 | #[derive(Debug)] |
| 6 | pub struct HashReader<D: Digest, R: io::Read> { |
| 7 | reader: R, |
| 8 | hasher: D, |
| 9 | } |
| 10 | |
| 11 | impl<D: Digest, R: io::Read> HashReader<D, R> { |
| 12 | /// Construct a new `HashReader` given an existing `reader` by value. |
nothing calls this directly
no outgoing calls
no test coverage detected