Trait dag::SetLike

source ·
pub trait SetLike<T> {
    // Required methods
    fn insert(&mut self, i: T) -> bool;
    fn contains(&self, i: &T) -> bool;
}

Required Methods§

source

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

source

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

Implementations on Foreign Types§

source§

impl SetLike<u32> for BitSet

source§

fn insert(&mut self, i: u32) -> bool

source§

fn contains(&self, i: &u32) -> bool

source§

impl<T: Eq + Hash> SetLike<T> for HashSet<T>

source§

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

source§

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

Implementors§