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

Method literal

crates/gitql-core/src/values/row.rs:24–35  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

22
23impl 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>() {

Callers 3

print_group_as_tableMethod · 0.45
printMethod · 0.45
printMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected