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

Method gte_op

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

Source from the content-addressed store, hash-verified

182 }
183
184 fn gte_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> {
185 if let Some(other_bool) = other.as_any().downcast_ref::<BoolValue>() {
186 return Ok(Box::new(BoolValue::new(self.value >= other_bool.value)));
187 }
188 Err("Unexpected type to perform `>=` with".to_string())
189 }
190
191 fn group_gte_op(
192 &self,

Callers

nothing calls this directly

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected