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

Class HashWriter

digest-io/src/writer.rs:6–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4/// Abstraction over a writer which hashes the data being written.
5#[derive(Debug)]
6pub struct HashWriter<D: Digest, W: io::Write> {
7 writer: W,
8 hasher: D,
9}
10
11impl<D: Digest, W: io::Write> HashWriter<D, W> {
12 /// Construct a new `HashWriter` given an existing `writer` by value.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected