pub fn target_at_fn<T: MinerConfig>(
    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 indexable snapshot.