FindItemByProperty

Trait FindItemByProperty 

Source
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§

Source

fn find_items_with_matching_property_value_by<F>( &self, predicate: F, ) -> Vec<(String, Item)>
where F: Fn(String, PropertyValue) -> bool + Copy,

Provided Methods§

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.

Implementors§