pub struct BlockHashSizes<const S1: usize, const S2: usize> {}
Expand description
A generic type to constrain given two block hash sizes using ConstrainedBlockHashSizes
.
Trait Implementations§
Source§impl<const S1: usize, const S2: usize> ConstrainedBlockHashSizes for BlockHashSizes<S1, S2>where
BlockHashSizes<S1, S2>: SealedBlockHashSizes,
impl<const S1: usize, const S2: usize> ConstrainedBlockHashSizes for BlockHashSizes<S1, S2>where
BlockHashSizes<S1, S2>: SealedBlockHashSizes,
Source§const MAX_BLOCK_HASH_SIZE_1: usize = S1
const MAX_BLOCK_HASH_SIZE_1: usize = S1
The maximum size of the block hash 1.
Source§const MAX_BLOCK_HASH_SIZE_2: usize = S2
const MAX_BLOCK_HASH_SIZE_2: usize = S2
The maximum size of the block hash 2.
Auto Trait Implementations§
impl<const S1: usize, const S2: usize> Freeze for BlockHashSizes<S1, S2>
impl<const S1: usize, const S2: usize> RefUnwindSafe for BlockHashSizes<S1, S2>
impl<const S1: usize, const S2: usize> Send for BlockHashSizes<S1, S2>
impl<const S1: usize, const S2: usize> Sync for BlockHashSizes<S1, S2>
impl<const S1: usize, const S2: usize> Unpin for BlockHashSizes<S1, S2>
impl<const S1: usize, const S2: usize> UnwindSafe for BlockHashSizes<S1, S2>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more