create_keypath_predicate

Function create_keypath_predicate 

Source
pub fn create_keypath_predicate<T, V, F>(
    keypath: KeyPaths<T, V>,
    predicate: F,
) -> impl Fn(&T) -> bool
where F: Fn(&V) -> bool,
Expand description

Create a keypath predicate that can be reused