pub const INVALID: i32 = -1;
The invalid-index sentinel. Chosen by the reference implementation, not by us.