Function validate_commodity_levy_map

Source
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 validate
  • regions - The set of regions that should be covered
  • milestone_years - All milestone years
  • time_slice_info - Information about time slices

§Returns

Nothing if the map is valid. An error if the map is missing any entries.