Function iter_set::union_by_key [−][src]
pub fn union_by_key<T, L, R, K, F>(
a: L,
b: R,
key: F
) -> impl Iterator<Item = T> where
T: Ord,
L: IntoIterator<Item = T>,
R: IntoIterator<Item = T>,
K: Ord,
F: FnMut(&T) -> K,
Take the union of two sets represented by sorted, deduplicated iterators, using a key extraction function.
See union
.