pub type IndexAssignmentOf<C> = IndexAssignment<<C as NposSolution>::VoterIndex, <C as NposSolution>::TargetIndex, <C as NposSolution>::Accuracy>;
Expand description

A type alias for IndexAssignment made from NposSolution.

Aliased Type§

struct IndexAssignmentOf<C> {
    pub who: <C as NposSolution>::VoterIndex,
    pub distribution: Vec<(<C as NposSolution>::TargetIndex, <C as NposSolution>::Accuracy)>,
}

Fields§

§who: <C as NposSolution>::VoterIndex

Index of the voter among the voters list.

§distribution: Vec<(<C as NposSolution>::TargetIndex, <C as NposSolution>::Accuracy)>

The distribution of the voter’s stake among winning targets.

Targets are identified by their index in the canonical list.