Macro exists_where
Source macro_rules! exists_where {
($data:expr, $field:expr, $pred:expr) => { ... };
}
Expand description
Check if any item matches.
§Example
ⓘlet exists = exists_where!(products, Product::category_r(), |cat| cat == "Electronics");