1 2 3 4
pub trait Search<T> { type SearchFn = fn(&T) -> bool; fn search(&self, is_ok: SearchFn) -> Option<usize>; }