pub type Statistic = fn(&[RequestSample]) -> f64;Expand description
A statistic of a set of whole requests, e.g. super::metrics::agg_tok_s.
A function pointer rather than a generic F: Fn(..): a fn item passed to a
generic higher-ranked bound makes rustc infer a fresh lifetime and reject the
call, so every call site would need a wrapping closure — which clippy then
correctly flags as redundant. The pointer type takes the fn item directly.