Skip to main content

Threshold

Trait Threshold 

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

Source

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.

Implementors§