(&self)
| 15 | |
| 16 | impl DataType for RowType { |
| 17 | fn literal(&self) -> String { |
| 18 | let mut str = String::new(); |
| 19 | let last_position = self.tuple.len() - 1; |
| 20 | str += "Row("; |
| 21 | for (pos, data_type) in self.tuple.iter().enumerate() { |
| 22 | str += &data_type.literal(); |
| 23 | if pos != last_position { |
| 24 | str += ", "; |
| 25 | } |
| 26 | } |
| 27 | str += ")"; |
| 28 | str |
| 29 | } |
| 30 | |
| 31 | fn equals(&self, other: &Box<dyn DataType>) -> bool { |
| 32 | let row_type: Box<dyn DataType> = Box::new(self.clone()); |
no test coverage detected