Function tp_npos_elections::to_supports[][src]

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

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.