pub fn create_keypath_predicate<T, V, F>( keypath: KeyPaths<T, V>, predicate: F, ) -> impl Fn(&T) -> boolwhere F: Fn(&V) -> bool,
Create a keypath predicate that can be reused