web5_rust::crypto::traits

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§