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

Method equals

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected