Trait 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§