Skip to main content

place_route

Function place_route 

Source
pub fn place_route(
    model: &mut dyn PresetModel,
    route: Route,
) -> Result<usize, FormatError>
Expand description

Puts a route in the slot that already joins the same source and destination, or in the first free slot.

ยงErrors

A FormatError that names the slot limit when every slot is taken, or the error of PresetModel::set_route.