fn validate_commodity_levy_map(
map: &CommodityLevyMap,
regions: &IndexSet<RegionID>,
milestone_years: &[u32],
time_slice_info: &TimeSliceInfo,
) -> Result<()>
Expand description
Validate that the commodity levy map contains entries for all regions, years and time slices.
§Arguments
map
- The commodity levy map to validateregions
- The set of regions that should be coveredmilestone_years
- All milestone yearstime_slice_info
- Information about time slices
§Returns
Nothing if the map is valid. An error if the map is missing any entries.