Function pallet_election_provider_multi_phase::helpers::voter_at_fn[][src]

pub fn voter_at_fn<T: Config>(
    snapshot: &Vec<(T::AccountId, VoteWeight, Vec<T::AccountId>)>
) -> impl Fn(SolutionVoterIndexOf<T>) -> Option<T::AccountId> + '_
Expand description

Create a function that can map a voter index (SolutionVoterIndexOf) to the actual voter account using a linearly indexible snapshot.