HashExt

Trait HashExt 

Source
pub trait HashExt {
    // Required method
    fn default_sha256() -> Hash;
}
Expand description

A trait extending Hash functionality.

Required Methods§

Source

fn default_sha256() -> Hash

Get the SHA256 hash of an empty input.

This is equivalent to sha256sum /dev/null.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§