clippy_utils::hir_utils

Function over

Source
pub fn over<X>(
    left: &[X],
    right: &[X],
    eq_fn: impl FnMut(&X, &X) -> bool,
) -> bool
Expand description

Checks if two slices are equal as per eq_fn.