Skip to main content

rollup

Function rollup 

Source
pub fn rollup<K, F>(
    events: &[Event],
    pricing: &Pricing,
    key: F,
) -> BTreeMap<K, Totals>
where K: Ord, F: Fn(&Event) -> Option<K>,
Expand description

Bucket events by a key. None from key drops the event from the rollup.