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

Method lte_op

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

Source from the content-addressed store, hash-verified

259 }
260
261 fn lte_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> {
262 if let Some(other_bool) = other.as_any().downcast_ref::<FloatValue>() {
263 let value = self.value <= other_bool.value;
264 return Ok(Box::new(BoolValue::new(value)));
265 }
266 Err("Unexpected type to perform `<=` with".to_string())
267 }
268
269 fn group_lte_op(
270 &self,

Callers

nothing calls this directly

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected