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

Method equals

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected