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

Method gt_op

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

Source from the content-addressed store, hash-verified

117 }
118
119 fn gt_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> {
120 if let Some(other_text) = other.as_any().downcast_ref::<TimeValue>() {
121 let are_equals = self.value > other_text.value;
122 return Ok(Box::new(BoolValue { value: are_equals }));
123 }
124 Err("Unexpected type to perform `>` with".to_string())
125 }
126
127 fn group_gt_op(
128 &self,

Callers

nothing calls this directly

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected