pub trait ConstrainedBlockHashSizes: SealedBlockHashSizes {
const MAX_BLOCK_HASH_SIZE_1: usize;
const MAX_BLOCK_HASH_SIZE_2: usize;
}Expand description
A trait to constrain block hash sizes.
This type is implemented for BlockHashSizes with following sizes:
Note that this trait is intentionally designed to be non-extensible (using the sealed trait pattern).
Required Associated Constants§
sourceconst MAX_BLOCK_HASH_SIZE_1: usize
const MAX_BLOCK_HASH_SIZE_1: usize
The maximum size of the block hash 1.
sourceconst MAX_BLOCK_HASH_SIZE_2: usize
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.