Trait Intersect

Source
pub trait Intersect<S, O> {
    // Required methods
    fn intersect(&self, other: S) -> O;
    fn has_non_empty_intersection_with(&self, other: S) -> bool;
}

Required Methods§

Source

fn intersect(&self, other: S) -> O

Source

fn has_non_empty_intersection_with(&self, other: S) -> bool

Implementations on Foreign Types§

Source§

impl<T: Clone + Eq + Hash> Intersect<&HashSet<T>, HashSet<T>> for HashSet<T>

Source§

fn intersect(&self, other: &HashSet<T>) -> HashSet<T>

Source§

fn has_non_empty_intersection_with(&self, other: &HashSet<T>) -> bool

Implementors§