Skip to main content

parse_ranking

Function parse_ranking 

Source
pub fn parse_ranking(text: &str) -> Option<Vec<(Criterion, f64)>>
Expand description

A ranking as --rank-by names it: one criterion of CRITERIA (“energy”), or a weighted mix (“cost=1,energy=0.5”; a name alone weighs 1). None for a name it does not know or a weight that is no positive number.