Hash256

Trait Hash256 

pub trait Hash256 {
    // Required method
    fn hash_sha256(&self) -> HashDigest;
}
Expand description

A trait for types that can be hashed with Sha256 by directly hashing the bytes exposed as AsRef<[u8]>.

Required Methods§

fn hash_sha256(&self) -> HashDigest

Hash the type

Implementations on Foreign Types§

§

impl Hash256 for &str

§

impl Hash256 for &[u8]

§

impl Hash256 for String

§

impl Hash256 for Vec<u8>

§

impl<const N: usize> Hash256 for [u8; N]

Implementors§