pub fn route_to(
suite: &Suite,
prec: &Precedence,
from: &Condition,
goal: &Condition,
limits: Limits,
) -> Option<Route>Expand description
A short chain of transitions from from to a state where goal certainly holds, if one
is within limits. How a section’s setup is reached from its parent’s.
It only takes transitions that change something relevant: a state the goal needs changed, or one some relevant transition’s Given or trigger needs. Among those it expands first the state with the fewest steps taken plus half the goal states still wrong, so it reaches deep setups (sign in, open a project, pick a tool, start drawing) without trying every other button on the way.