Trait array_tool::vec::Intersect [−][src]
pub trait Intersect<T> {
fn intersect(&self, _: Self) -> Self;
fn intersect_if<F: Fn(&T, &T) -> bool>(&self, _: Self, validator: F) -> Self;
}
Expand description
Set Intersection — Returns a new array containing elements common to the two arrays, excluding any duplicates. The order is preserved from the original array.