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

Method equals

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected