Take ownership of `self`, leaving an empty `MirRelationExpr::Constant` with an **incorrect** type. This should only be used if `self` is about to be dropped or otherwise overwritten.
(&mut self)
| 1562 | /// |
| 1563 | /// This should only be used if `self` is about to be dropped or otherwise overwritten. |
| 1564 | pub fn take_dangerous(&mut self) -> MirRelationExpr { |
| 1565 | let empty = MirRelationExpr::Constant { |
| 1566 | rows: Ok(vec![]), |
| 1567 | typ: ReprRelationType::new(Vec::new()), |
| 1568 | }; |
| 1569 | std::mem::replace(self, empty) |
| 1570 | } |
| 1571 | |
| 1572 | /// Replaces `self` with some logic applied to `self`. |
| 1573 | pub fn replace_using<F>(&mut self, logic: F) |
no test coverage detected