Skip to main content

step

Function step 

pub fn step(
    moving: Placement,
    others: &[Placement],
    way: Step,
) -> Option<Placement>
Expand description

Where an arrow key moves moving: the next valid place that way among the places flush against a side of another display and aligned with its start, centre or end. Of those, the one that stays most in line across the step, then the nearest. None when nothing lies that way.