fn sparse_intersect<T: Idx>( set: &mut SparseBitSet<T>, other_contains: impl Fn(&T) -> bool, ) -> bool