Same as [`Self::insert`] but avoids cloning expression if they are owned
(&mut self, left: Expr, right: Expr)
| 69 | /// Same as [`Self::insert`] but avoids cloning expression if they |
| 70 | /// are owned |
| 71 | pub fn insert_owned(&mut self, left: Expr, right: Expr) -> bool { |
| 72 | if self.contains(&left, &right) { |
| 73 | false |
| 74 | } else { |
| 75 | self.inner.insert((left, right)); |
| 76 | true |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | /// Inserts potentially many join keys into the set, copying only when necessary |
| 81 | /// |
no test coverage detected