T: Type; v: Vec<T>; f: Fn (&T) -> bool;
I want to get a
Option<usize> of the first index
f(v[i]) returns true.
I'm looking at https://doc.rust-lang.org/std/vec/struct.Vec.html and there appears to be no function that returns type
Question: is there a builtin for solving this?