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§

source§

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

source§

fn evaluate(&self) -> ElectionScore

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