pub trait Threshold<TYPES: NodeType> {
// Required method
fn threshold(membership: &EpochMembership<TYPES>) -> U256;
}Expand description
Trait which allows use to inject different threshold calculations into a Certificate type
Required Methods§
Sourcefn threshold(membership: &EpochMembership<TYPES>) -> U256
fn threshold(membership: &EpochMembership<TYPES>) -> U256
Calculate a threshold based on the membership
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.