(lhs: &[u8], rhs: &[u8], byte_eq_kernel: impl Fn((&u8, &u8)) -> bool)
| 91 | } |
| 92 | |
| 93 | fn equals_bytes(lhs: &[u8], rhs: &[u8], byte_eq_kernel: impl Fn((&u8, &u8)) -> bool) -> bool { |
| 94 | lhs.len() == rhs.len() && zip(lhs, rhs).all(byte_eq_kernel) |
| 95 | } |
| 96 | |
| 97 | /// This is faster than `[u8]::starts_with` for small slices. |
| 98 | /// See <https://github.com/apache/arrow-rs/issues/6107> for more details. |
no test coverage detected