(&self)
| 22 | |
| 23 | impl Value for RowValue { |
| 24 | fn literal(&self) -> String { |
| 25 | let mut str = String::new(); |
| 26 | str += "("; |
| 27 | for (pos, element) in self.columns.iter().enumerate() { |
| 28 | str += &element.literal(); |
| 29 | if pos + 1 != self.columns.len() { |
| 30 | str += ", "; |
| 31 | } |
| 32 | } |
| 33 | str += ")"; |
| 34 | str |
| 35 | } |
| 36 | |
| 37 | fn equals(&self, other: &Box<dyn Value>) -> bool { |
| 38 | if let Some(other_row) = other.as_any().downcast_ref::<RowValue>() { |
no test coverage detected