pub trait ValidCostFactor:
Unsigned
+ NonZero
+ Sealed {
type Output: ArrayLength + PowerOfTwo + NonZero + IsLess<U4294967296, Output = B1>;
type MinimumBlocks: ArrayLength + NonZero + IsLessOrEqual<U4294967296, Output = B1>;
}
Expand description
A trait for valid cost factors
Required Associated Types§
Sourcetype Output: ArrayLength + PowerOfTwo + NonZero + IsLess<U4294967296, Output = B1>
type Output: ArrayLength + PowerOfTwo + NonZero + IsLess<U4294967296, Output = B1>
The output type
Sourcetype MinimumBlocks: ArrayLength + NonZero + IsLessOrEqual<U4294967296, Output = B1>
type MinimumBlocks: ArrayLength + NonZero + IsLessOrEqual<U4294967296, Output = B1>
The minimum number of blocks required for a given Cost Factor (log2(N))
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.