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

Method lt_op

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

Source from the content-addressed store, hash-verified

213 }
214
215 fn lt_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> {
216 if let Some(other_text) = other.as_any().downcast_ref::<DateValue>() {
217 return Ok(Box::new(BoolValue::new(
218 self.timestamp < other_text.timestamp,
219 )));
220 }
221 Err("Unexpected type to perform `<` with".to_string())
222 }
223
224 fn group_lt_op(
225 &self,

Callers 1

evaluate_comparisonFunction · 0.45

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected