pub trait FindItemByProperty {
// Required method
fn find_items_with_matching_property_value_by<F>(
&self,
predicate: F,
) -> Vec<(String, Item)>
where F: Fn(String, PropertyValue) -> bool + Copy;
// 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)>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.