ConstrainedBlockHashSizes

Trait ConstrainedBlockHashSizes 

Source
pub trait ConstrainedBlockHashSizes: SealedBlockHashSizes {
    const MAX_BLOCK_HASH_SIZE_1: usize;
    const MAX_BLOCK_HASH_SIZE_2: usize;
}
Expand description

A sealed trait to constrain block hash sizes.

This type is implemented for BlockHashSizes with following sizes:

Required Associated Constants§

Source

const MAX_BLOCK_HASH_SIZE_1: usize

The maximum size of the block hash 1.

Source

const MAX_BLOCK_HASH_SIZE_2: usize

The maximum size of the block hash 2.

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 S1: usize, const S2: usize> ConstrainedBlockHashSizes for BlockHashSizes<S1, S2>
where BlockHashSizes<S1, S2>: SealedBlockHashSizes,