fn track_slot(p: &mut Project, kind: TrackKind, n: usize) -> usize
Ensure the n-th track of kind exists and return its index.
n
kind