read_process_investment_constraints_from_iter

Function read_process_investment_constraints_from_iter 

Source
fn read_process_investment_constraints_from_iter<I>(
    iter: I,
    processes: &ProcessMap,
    milestone_years: &[u32],
) -> Result<HashMap<ProcessID, ProcessInvestmentConstraintsMap>>
Expand description

Process raw investment-constraint records into a constraints map.

§Arguments

  • iter - Iterator over ProcessInvestmentConstraintRaw records
  • processes - Map of known processes to validate against
  • milestone_years - Milestone years used by the model

§Returns

A HashMap<ProcessID, ProcessInvestmentConstraintsMap> mapping process IDs to their investment-constraints maps, or an error.