pub fn union(&self, other: &Self) -> Self {
        let mut joined = Self::new();
        for x in self.cloned_iter() {
            assert!(joined.add(x).is_ok());
        }
        for (loc, x_) in other {
            if joined.contains_(x_) {
                continue;
            }
            assert!(joined.add(T::add_loc(loc, x_.clone())).is_ok())
        }
        joined
    }
// union of two sets. Prefers the loc of the first set
union of two sets. Prefers the loc of the first set
union of two sets . Prefers the loc of the first set
pub fn union(&self, other: &Self) -> Self {
        let mut joined = Self::new();
        for x in self.cloned_iter() {
            assert!(joined.add(x).is_ok());
        }
        for (loc, x_) in other {
            if joined.contains_(x_) {
                continue;
            }
            assert!(joined.add(T::add_loc(loc, x_.clone())).is_ok())
        }
        joined
    }
pub fn union ( & self , other : & Self ) -> Self { let mut joined = Self :: new ( ) ; for x in self . cloned_iter ( ) { assert ! ( joined add ( x ) is_ok ( ) ) ; } for ( loc , x_ ) in other { if joined . contains_ ( x_ ) { continue ; } assert ! ( joined add ( T add_loc ( loc x_ clone ( ) ) ) is_ok ( ) ) } joined }
union of two sets.
union of two sets .
&self
other
&Self