Construct a new `HashReader` given an existing `reader` by value.
(reader: R)
| 19 | impl<D: Digest, R> HashReader<D, R> { |
| 20 | /// Construct a new `HashReader` given an existing `reader` by value. |
| 21 | pub fn new(reader: R) -> Self { |
| 22 | Self::new_from_parts(D::new(), reader) |
| 23 | } |
| 24 | |
| 25 | /// Construct a new `HashReader` given an existing `hasher` and `reader` by value. |
| 26 | pub fn new_from_parts(hasher: D, reader: R) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected