SizedHash

Trait SizedHash 

Source
pub trait SizedHash: RawHash {
    const N: usize;

    // Provided method
    fn size(&self) -> usize { ... }
}
Expand description

SizedHash extends RawHash to include a constant size for the hash output.

Required Associated Constants§

Source

const N: usize

Provided Methods§

Source

fn size(&self) -> usize

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.

Implementations on Foreign Types§

Source§

impl SizedHash for [u8; 20]

Source§

const N: usize = 20usize

Source§

impl SizedHash for [u8; 32]

Source§

const N: usize = 32usize

Implementors§

Source§

impl SizedHash for H160

Source§

const N: usize = 20usize

Source§

impl SizedHash for H256

Source§

const N: usize = 32usize