Function sp_npos_elections::to_supports[][src]

pub fn to_supports<AccountId: IdentifierT>(
    winners: &[AccountId],
    assignments: &[StakedAssignment<AccountId>]
) -> Result<Supports<AccountId>, Error>
Expand description

Same as to_support_map except it calls FlattenSupportMap on top of the result to return a flat vector.

Similar to to_support_map, winners is used for error checking.