Trait math::set::traits::Set

source ·
pub trait Set<E> {
    // Required methods
    fn is_empty(&self) -> bool;
    fn contains(&self, element: &E) -> bool;
}

Required Methods§

source

fn is_empty(&self) -> bool

source

fn contains(&self, element: &E) -> bool

Implementations on Foreign Types§

source§

impl<T: Clone + Eq + Hash> Set<T> for HashSet<T>

source§

fn is_empty(&self) -> bool

source§

fn contains(&self, item: &T) -> bool

Implementors§