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