pub trait FindItemByProperty {
// Required method
fn find_items_with_matching_property_value_by<F>(
&self,
predicate: F,
) -> Vec<(&String, &Item)>
where F: Fn(&str, &PropertyValue) -> bool;
// Provided method
fn find_items_with_matching_property_value(
&self,
needle: &PropertyValue,
) -> Vec<(&String, &Item)> { ... }
}
Required Methods§
fn find_items_with_matching_property_value_by<F>( &self, predicate: F, ) -> Vec<(&String, &Item)>
Provided Methods§
fn find_items_with_matching_property_value( &self, needle: &PropertyValue, ) -> Vec<(&String, &Item)>
Object Safety§
This trait is not object safe.