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

Method gt_op

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

Source from the content-addressed store, hash-verified

154 }
155
156 fn gt_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> {
157 if let Some(other_bool) = other.as_any().downcast_ref::<FloatValue>() {
158 let value = self.value > other_bool.value;
159 return Ok(Box::new(BoolValue::new(value)));
160 }
161 Err("Unexpected type to perform `>` with".to_string())
162 }
163
164 fn group_gt_op(
165 &self,

Callers

nothing calls this directly

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected