clippy_utils::ast_utils

Function unordered_over

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

Checks if each element in the first slice is contained within the latter as per eq_fn.