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