pub trait Analyze {
// Provided methods
fn collect_statistic(&self, _stat: StatType) -> usize { ... }
fn for_each_stream(&self, _cb: &mut dyn FnMut(StreamMeta)) { ... }
}Expand description
Trait for estimating various size/count metrics.
Provided Methods§
fn collect_statistic(&self, _stat: StatType) -> usize
Sourcefn for_each_stream(&self, _cb: &mut dyn FnMut(StreamMeta))
fn for_each_stream(&self, _cb: &mut dyn FnMut(StreamMeta))
Call cb with the StreamMeta of every stream contained in self.
Default implementation is a no-op (types that hold no streams).