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

Method equals

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

Source from the content-addressed store, hash-verified

30 }
31
32 fn equals(&self, other: &Box<dyn Value>) -> bool {
33 if let Some(other_int) = other.as_any().downcast_ref::<IntValue>() {
34 return self.value == other_int.value;
35 }
36 false
37 }
38
39 fn compare(&self, other: &Box<dyn Value>) -> Option<Ordering> {
40 if let Some(other_int) = other.as_any().downcast_ref::<IntValue>() {

Callers

nothing calls this directly

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected