pub trait Intersect<T> {
// Required methods
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.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.