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

Method gt_op

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

Source from the content-addressed store, hash-verified

141 }
142
143 fn gt_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> {
144 if let Some(other_text) = other.as_any().downcast_ref::<DateValue>() {
145 return Ok(Box::new(BoolValue::new(
146 self.timestamp > other_text.timestamp,
147 )));
148 }
149 Err("Unexpected type to perform `>` with".to_string())
150 }
151
152 fn group_gt_op(
153 &self,

Callers 1

evaluate_comparisonFunction · 0.45

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected