MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / literal

Method literal

crates/gitql-ast/src/types/row.rs:17–29  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

15
16impl 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());

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected