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

Method clone

digest-io-async/src/reader.rs:88–93  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

86
87impl<D: Digest + Clone, R: Clone> Clone for HashReader<D, R> {
88 fn clone(&self) -> HashReader<D, R> {
89 HashReader {
90 reader: self.reader.clone(),
91 hasher: self.hasher.clone(),
92 }
93 }
94}
95
96impl<D: Digest, R: AsyncRead> AsyncRead for HashReader<D, R> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected