fn read_process_flows_from_iter<I>(
iter: I,
processes: &mut ProcessMap,
commodities: &CommodityMap,
milestone_years: &[u32],
) -> Result<HashMap<ProcessID, ProcessFlowsMap>>where
I: Iterator<Item = ProcessFlowRaw>,Expand description
Read ProcessFlowRaw records from an iterator and convert them into ProcessFlow records.
§Arguments
iter- Iterator overProcessFlowRawrecordsprocesses- Mutable map of known processes used for validation and updatescommodities- Map of known commoditiesmilestone_years- Milestone years used by the model
§Returns
A HashMap<ProcessID, ProcessFlowsMap> mapping process IDs to their flows.