[][src]Trait negatable_set::MutableSet

pub trait MutableSet {
    type Item: Debug + 'static;
    fn iter<'a>(&'a self) -> Box<dyn Iterator<Item = &'a Self::Item> + 'a>;
fn is_empty(&self) -> bool;
fn contains(&self, value: &Self::Item) -> bool;
fn insert(&mut self, value: Self::Item);
fn remove(&mut self, value: &Self::Item);
fn is_subset(&self, rhs: &Self) -> bool;
fn is_superset(&self, rhs: &Self) -> bool;
fn is_disjoint(&self, rhs: &Self) -> bool; }

Associated Types

type Item: Debug + 'static

Loading content...

Required methods

fn iter<'a>(&'a self) -> Box<dyn Iterator<Item = &'a Self::Item> + 'a>

fn is_empty(&self) -> bool

fn contains(&self, value: &Self::Item) -> bool

fn insert(&mut self, value: Self::Item)

fn remove(&mut self, value: &Self::Item)

fn is_subset(&self, rhs: &Self) -> bool

fn is_superset(&self, rhs: &Self) -> bool

fn is_disjoint(&self, rhs: &Self) -> bool

Loading content...

Implementations on Foreign Types

impl<T: Ord + Debug + 'static> MutableSet for BTreeSet<T>[src]

type Item = T

impl<T: Hash + Eq + Debug + 'static, S: BuildHasher + Default> MutableSet for HashSet<T, S>[src]

type Item = T

Loading content...

Implementors

Loading content...