1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
use intmap::IntMap; use std::fmt; pub struct FlowMeta<'a> { pub name: &'a str, pub tag: u8, pub visible: bool, } pub struct DataFrame<M, D> where M: fmt::Display, { // metric contain something like a timestamp, or month names pub metric: M, // data key is tag for stream meta (a.k.a column tag) // D is pub data: IntMap<D>, }