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

Method neg_op

crates/gitql-core/src/values/float.rs:82–84  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

80 }
81
82 fn neg_op(&self) -> Result<Box<dyn Value>, String> {
83 Ok(Box::new(FloatValue { value: -self.value }))
84 }
85
86 fn eq_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> {
87 if let Some(other_bool) = other.as_any().downcast_ref::<FloatValue>() {

Callers 1

evaluate_prefix_unaryFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected