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

Method eq_op

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

Source from the content-addressed store, hash-verified

60 }
61
62 fn eq_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> {
63 if let Some(other_text) = other.as_any().downcast_ref::<TextValue>() {
64 return Ok(Box::new(BoolValue::new(self.value == other_text.value)));
65 }
66 Err("Unexpected type to perform `=` with".to_string())
67 }
68
69 fn group_eq_op(
70 &self,

Callers

nothing calls this directly

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected