Same as [`Self::insert_all`] but avoids cloning expressions if they are already owned returns true if any of the pairs were inserted
(
&mut self,
iter: impl IntoIterator<Item = (Expr, Expr)>,
)
| 96 | /// |
| 97 | /// returns true if any of the pairs were inserted |
| 98 | pub fn insert_all_owned( |
| 99 | &mut self, |
| 100 | iter: impl IntoIterator<Item = (Expr, Expr)>, |
| 101 | ) -> bool { |
| 102 | let mut inserted = false; |
| 103 | for (left, right) in iter.into_iter() { |
| 104 | inserted |= self.insert_owned(left, right); |
| 105 | } |
| 106 | inserted |
| 107 | } |
| 108 | |
| 109 | /// Inserts any join keys that are common to both `s1` and `s2` into self |
| 110 | pub fn insert_intersection(&mut self, s1: &JoinKeySet, s2: &JoinKeySet) { |