Function tp_npos_elections::to_support_map [−][src]
pub fn to_support_map<A: IdentifierT>(
winners: &[A],
assignments: &[StakedAssignment<A>]
) -> Result<SupportMap<A>, Error>
Build the support map from the winners and assignments.
The list of winners is basically a redundancy for error checking only; It ensures that all the
targets pointed to by the Assignment
are present in the winners
.