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

Method new_from_parts

digest-io/src/reader.rs:18–20  ·  view source on GitHub ↗

Construct a new `HashReader` given an existing `hasher` and `reader` by value.

(hasher: D, reader: R)

Source from the content-addressed store, hash-verified

16
17 /// Construct a new `HashReader` given an existing `hasher` and `reader` by value.
18 pub fn new_from_parts(hasher: D, reader: R) -> Self {
19 HashReader { reader, hasher }
20 }
21
22 /// Replace the reader with another reader
23 pub fn replace_reader(&mut self, reader: R) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected