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

Method gte_op

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

Source from the content-addressed store, hash-verified

177 }
178
179 fn gte_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> {
180 if let Some(other_text) = other.as_any().downcast_ref::<DateValue>() {
181 return Ok(Box::new(BoolValue::new(
182 self.timestamp >= other_text.timestamp,
183 )));
184 }
185 Err("Unexpected type to perform `>=` with".to_string())
186 }
187
188 fn group_gte_op(
189 &self,

Callers 1

evaluate_comparisonFunction · 0.45

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected