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

Method clone

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

Source from the content-addressed store, hash-verified

78
79impl<D: Digest + Clone, R: io::Read + Clone> Clone for HashReader<D, R> {
80 fn clone(&self) -> HashReader<D, R> {
81 HashReader {
82 reader: self.reader.clone(),
83 hasher: self.hasher.clone(),
84 }
85 }
86}
87
88impl<D: Digest, R: io::Read> io::Read for HashReader<D, R> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected