pub(crate) const fn prefix_eq_or_panic( a: &[u8], b: &[u8], prefix_len: usize, ) -> bool
Const function to evaluate a[..prefix_len] == b[..prefix_len]
a[..prefix_len] == b[..prefix_len]
Panics if prefix_len is longer than either a or b.
prefix_len
a
b