Function clippy_utils::search_same

source ·
pub fn search_same<T, Hash, Eq>(exprs: &[T], hash: Hash, eq: Eq) -> Vec<(&T, &T)>where
    Hash: Fn(&T) -> u64,
    Eq: Fn(&T, &T) -> bool,
Expand description

returns list of all pairs (a, b) from exprs such that eq(a, b) hash must be comformed with eq