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

Method gte_op

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

Source from the content-addressed store, hash-verified

152 }
153
154 fn gte_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> {
155 if let Some(other_text) = other.as_any().downcast_ref::<TimeValue>() {
156 let are_equals = self.value >= other_text.value;
157 return Ok(Box::new(BoolValue { value: are_equals }));
158 }
159 Err("Unexpected type to perform `>=` with".to_string())
160 }
161
162 fn group_gte_op(
163 &self,

Callers

nothing calls this directly

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected