count_where

Macro count_where 

Source
macro_rules! count_where {
    ($data:expr, $field:expr, $pred:expr) => { ... };
}
Expand description

Quick count with filter.

§Example

let count = count_where!(products, Product::stock(), |&s| s > 0);