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

Method replace_reader

digest-io-async/src/reader.rs:31–33  ·  view source on GitHub ↗

Replace the reader with another reader

(&mut self, reader: R)

Source from the content-addressed store, hash-verified

29
30 /// Replace the reader with another reader
31 pub fn replace_reader(&mut self, reader: R) {
32 self.reader = reader;
33 }
34
35 /// Gets a reference to the underlying hasher
36 pub fn get_hasher(&self) -> &D {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected