Function pallet_election_provider_multi_phase::helpers::target_at_fn[][src]

pub fn target_at_fn<T: Config>(
    snapshot: &Vec<T::AccountId>
) -> impl Fn(SolutionTargetIndexOf<T>) -> Option<T::AccountId> + '_
Expand description

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