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

Method equals

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

Source from the content-addressed store, hash-verified

25 }
26
27 fn equals(&self, other: &Box<dyn Value>) -> bool {
28 if let Some(other_date) = other.as_any().downcast_ref::<IntervalValue>() {
29 return self.interval == other_date.interval;
30 }
31 false
32 }
33
34 fn compare(&self, other: &Box<dyn Value>) -> Option<Ordering> {
35 if let Some(other_interval) = other.as_any().downcast_ref::<IntervalValue>() {

Callers

nothing calls this directly

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected