Function core::slice::get_many_check_valid
source · fn get_many_check_valid<const N: usize>(
indices: &[usize; N],
len: usize
) -> bool
Expand description
This checks every index against each other, and against len
.
This will do binomial(N + 1, 2) = N * (N + 1) / 2 = 0, 1, 3, 6, 10, ..
comparison operations.