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

Method lte_op

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

Source from the content-addressed store, hash-verified

249 }
250
251 fn lte_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> {
252 if let Some(other_text) = other.as_any().downcast_ref::<DateValue>() {
253 return Ok(Box::new(BoolValue::new(
254 self.timestamp <= other_text.timestamp,
255 )));
256 }
257 Err("Unexpected type to perform `<=` with".to_string())
258 }
259
260 fn group_lte_op(
261 &self,

Callers 1

evaluate_comparisonFunction · 0.45

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected