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

Method equals

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

Source from the content-addressed store, hash-verified

38 }
39
40 fn equals(&self, other: &Box<dyn Value>) -> bool {
41 if let Some(other_text) = other.as_any().downcast_ref::<TextValue>() {
42 return self.value == other_text.value;
43 }
44 false
45 }
46
47 fn compare(&self, other: &Box<dyn Value>) -> Option<Ordering> {
48 if let Some(other_text) = other.as_any().downcast_ref::<TextValue>() {

Callers

nothing calls this directly

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected