Skip to main content

ladder

Function ladder 

Source
fn ladder(
    crossing: &Crossing,
    lead: &SessionSlot,
    live: impl Fn(&SessionSlot) -> bool,
) -> Option<SessionSlot>
Expand description

The delivery ladder: the seat the crossing prefers when it is live, else the lead when it is, else nobody - and nobody means the mark alone stands.