simple_crypto

Trait Hashable

Source
pub trait Hashable: Serialize {
    // Provided methods
    fn hash(&self) -> Hash { ... }
    fn hash_bytes(&self) -> Vec<u8> { ... }
}

Provided Methods§

Source

fn hash(&self) -> Hash

Source

fn hash_bytes(&self) -> Vec<u8>

Implementations on Foreign Types§

Source§

impl Hashable for &[u8]

Source§

fn hash(&self) -> Hash

Source§

impl Hashable for Vec<u8>

Source§

fn hash(&self) -> Hash

Implementors§