pub trait Metric: Copy + Clone + Debug + Display + Eq + FromStr + Ord {
const TYPE: MetricType;
fn score(self) -> f64;
fn as_str(self) -> &'static str;
fn name() -> &'static str { ... }
}
Expand description
Trait for CVSS metrics.
Required Associated Constants
const TYPE: MetricType
const TYPE: MetricType
MetricType
of this metric.