Type Definition sp_npos_elections::Supports

source ·
pub type Supports<A> = Vec<(A, Support<A>)>;
Expand description

A target-major representation of the the election outcome.

Essentially a flat variant of SupportMap.

The main advantage of this is that it is encodable.

Trait Implementations§


impl<AccountId: IdentifierT> EvaluateSupport for Supports<AccountId>


fn evaluate(&self) -> ElectionScore

Evaluate a support map. The returned tuple contains: Read more