pub trait PointsToSet<T> {
    type Iter<'a>: Iterator<Item = T>
       where Self: 'a;

    // Required methods
    fn new() -> Self;
    fn clear(&mut self);
    fn count(&self) -> usize;
    fn contains(&self, elem: T) -> bool;
    fn is_empty(&self) -> bool;
    fn superset(&self, other: &Self) -> bool;
    fn insert(&mut self, elem: T) -> bool;
    fn remove(&mut self, elem: T) -> bool;
    fn union(&mut self, other: &Self) -> bool;
    fn subtract(&mut self, other: &Self) -> bool;
    fn intersect(&mut self, other: &Self) -> bool;
    fn iter<'a>(&'a self) -> Self::Iter<'a>;
}

Required Associated Types§

source

type Iter<'a>: Iterator<Item = T> where Self: 'a

Required Methods§

source

fn new() -> Self

source

fn clear(&mut self)

source

fn count(&self) -> usize

source

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

source

fn is_empty(&self) -> bool

source

fn superset(&self, other: &Self) -> bool

source

fn insert(&mut self, elem: T) -> bool

source

fn remove(&mut self, elem: T) -> bool

source

fn union(&mut self, other: &Self) -> bool

source

fn subtract(&mut self, other: &Self) -> bool

source

fn intersect(&mut self, other: &Self) -> bool

source

fn iter<'a>(&'a self) -> Self::Iter<'a>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Idx> PointsToSet<T> for HybridPointsToSet<T>

§

type Iter<'a> = HybridIter<'a, T>