Trait forest_filecoin::utils::io::writer_checksum::Checksum

source ·
pub trait Checksum<D: Digest> {
    // Required method
    fn finalize(&mut self) -> Result<Option<Output<D>>>;
}
Expand description

Trait marking the object that is collecting a kind of a checksum.

Required Methods§

source

fn finalize(&mut self) -> Result<Option<Output<D>>>

Return the checksum and resets the internal hasher.

Implementors§