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

Method eq_op

crates/gitql-core/src/values/row.rs:68–73  ·  view source on GitHub ↗
(&self, other: &Box<dyn Value>)

Source from the content-addressed store, hash-verified

66 }
67
68 fn eq_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> {
69 if other.as_any().downcast_ref::<RowValue>().is_none() {
70 return Err("Unexpected type to perform `=` with".to_string());
71 }
72 Ok(Box::new(BoolValue::new(self.equals(other))))
73 }
74
75 fn bang_eq_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> {
76 if other.as_any().downcast_ref::<RowValue>().is_none() {

Callers 1

evaluate_comparisonFunction · 0.45

Calls 2

as_anyMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected