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

A trait to constrain block hash size.

This type is implemented for BlockHashSize with following sizes:

Note that this trait is intentionally designed to be non-extensible (using the sealed trait pattern).

Required Associated Constants§

source

const SIZE: usize

The maximum size of a block hash.

Object Safety§

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