Function pallet_election_provider_multi_phase::helpers::voter_at_fn
source · pub fn voter_at_fn<T: MinerConfig>(
snapshot: &Vec<MinerVoterOf<T>>,
) -> 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 indexable snapshot.