metric_def

Function metric_def 

Source
pub fn metric_def(name: &str) -> Option<&'static MetricDef>
Expand description

Re-export of the comparison-policy types so downstream crates using ktstr::cli as their public surface don’t need to reach into the internal ktstr::stats module (which is pub(crate) — see lib.rs — and therefore not a stable public path). The policy is the only item in stats that a CLI or external consumer constructs directly; every other item is internal plumbing reached via cli::compare_partitions. Look up a metric definition by name.