Skip to main content

apply_prices

Function apply_prices 

Source
pub fn apply_prices(found: &mut [Candidate], list: &PriceList) -> Vec<String>
Expand description

Sets each candidate’s price (Candidate::price): the sum over its parts of the count times the list’s price, only where every part has one. Returns the part numbers the list lacks, each once, in order of first need.