fn read_process_investment_constraints_from_iter<I>(
iter: I,
processes: &ProcessMap,
milestone_years: &[u32],
) -> Result<HashMap<ProcessID, ProcessInvestmentConstraintsMap>>where
I: Iterator<Item = ProcessInvestmentConstraintRaw>,Expand description
Process raw investment-constraint records into a constraints map.
§Arguments
iter- Iterator overProcessInvestmentConstraintRawrecordsprocesses- Map of known processes to validate againstmilestone_years- Milestone years used by the model
§Returns
A HashMap<ProcessID, ProcessInvestmentConstraintsMap> mapping process IDs to their
investment-constraints maps, or an error.