Skip to main content

write_regions

Function write_regions 

Source
pub fn write_regions(
    layout: &StartposLayout,
    plan: &CaiPlan,
    map_regions: &[MapRegion],
    nodes: &HashMap<usize, Vec<PathfinderNode>>,
    links: &[RegionLinks],
) -> Result<RecordNode>
Expand description

Writes the regions list.

§Arguments

  • layout - Record layouts.
  • plan - Component ids.
  • map_regions - Regions of the map, in map order.
  • nodes - Pathfinder nodes, by region index.
  • links - What each region refers to, in map order.

§Errors

Returns an error if the layout lacks the records.