Trait math::set::traits::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§