Skip to main content

add_route_cost

Function add_route_cost 

Source
pub fn add_route_cost<'a>(
    router: &mut ClosedRouter,
    edges: impl Iterator<Item = &'a RouteEdge>,
    cost: Cost,
)
Expand description

Occupy a completed route on a ClosedRouter by adding cost to the graph edges each wire covers (the in-place analogue of the old segment-based occupancy).