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