(lhs: &[u8], rhs: &[u8], byte_eq_kernel: impl Fn((&u8, &u8)) -> bool)
| 203 | } |
| 204 | |
| 205 | fn equals_bytes(lhs: &[u8], rhs: &[u8], byte_eq_kernel: impl Fn((&u8, &u8)) -> bool) -> bool { |
| 206 | lhs.len() == rhs.len() && zip(lhs, rhs).all(byte_eq_kernel) |
| 207 | } |
| 208 | |
| 209 | /// This is faster than `str::starts_with` for small strings. |
| 210 | /// See <https://github.com/apache/arrow-rs/issues/6107> for more details. |
no test coverage detected