Construct a new `HashReader` given an existing `reader` by value.
(reader: R)
| 11 | impl<D: Digest, R: io::Read> HashReader<D, R> { |
| 12 | /// Construct a new `HashReader` given an existing `reader` by value. |
| 13 | pub fn new(reader: R) -> Self { |
| 14 | Self::new_from_parts(D::new(), reader) |
| 15 | } |
| 16 | |
| 17 | /// Construct a new `HashReader` given an existing `hasher` and `reader` by value. |
| 18 | pub fn new_from_parts(hasher: D, reader: R) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected