ConstrainedBlockHashSize

Trait ConstrainedBlockHashSize 

Source
pub trait ConstrainedBlockHashSize: SealedBlockHashSize {
    const SIZE: usize;
}
Expand description

A sealed trait to constrain block hash size.

This type is implemented for BlockHashSize with following sizes:

Required Associated Constants§

Source

const SIZE: usize

The maximum size of a block hash.

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§

Source§

impl<const SZ_BH: usize> ConstrainedBlockHashSize for BlockHashSize<SZ_BH>
where BlockHashSize<SZ_BH>: SealedBlockHashSize,

Source§

const SIZE: usize = SZ_BH