cargo_mobile2::target

Function call_for_targets_with_fallback

source
pub fn call_for_targets_with_fallback<'a, Iter, I, T, U, E, F>(
    targets: Iter,
    fallback: &'a dyn Fn(U) -> Option<&'a T>,
    arg: U,
    f: F,
) -> Result<Result<(), E>, TargetInvalid>
where Iter: ExactSizeIterator<Item = &'a I>, I: AsRef<str> + 'a, T: TargetTrait<'a>, F: FnMut(&T) -> Result<(), E>,