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

Method replace_reader

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

Replace the reader with another reader

(&mut self, reader: R)

Source from the content-addressed store, hash-verified

21
22 /// Replace the reader with another reader
23 pub fn replace_reader(&mut self, reader: R) {
24 self.reader = reader;
25 }
26
27 /// Gets a reference to the underlying hasher
28 pub fn get_hasher(&self) -> &D {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected