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§
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.