Function get_responsible_agents

Source
fn get_responsible_agents<'a, I>(
    agents: I,
    commodity_id: &'a CommodityID,
    region_id: &'a RegionID,
    year: u32,
) -> impl Iterator<Item = (&'a Agent, Dimensionless)>
where I: Iterator<Item = &'a Agent>,
Expand description

Get the agents responsible for a given commodity in a given year along with the commodity portion for which they are responsible