MCPcopy Create free account
hub / github.com/RustCrypto/utils / new

Method new

digest-io-async/src/writer.rs:21–23  ·  view source on GitHub ↗

Construct a new `HashWriter` given an existing `writer` by value.

(writer: W)

Source from the content-addressed store, hash-verified

19impl<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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected