pub fn rollup<K, F>( events: &[Event], pricing: &Pricing, key: F, ) -> BTreeMap<K, Totals>where K: Ord, F: Fn(&Event) -> Option<K>,
Bucket events by a key. None from key drops the event from the rollup.
None
key