Construct a new `HashReader` given an existing `hasher` and `reader` by value.
(hasher: D, reader: R)
| 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 { |
| 27 | HashReader { reader, hasher } |
| 28 | } |
| 29 | |
| 30 | /// Replace the reader with another reader |
| 31 | pub fn replace_reader(&mut self, reader: R) { |
nothing calls this directly
no outgoing calls
no test coverage detected