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

Method lte_op

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

Source from the content-addressed store, hash-verified

230 }
231
232 fn lte_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> {
233 if let Some(other_text) = other.as_any().downcast_ref::<TextValue>() {
234 return Ok(Box::new(BoolValue::new(self.value <= other_text.value)));
235 }
236 Err("Unexpected type to perform `<=` with".to_string())
237 }
238
239 fn group_lte_op(
240 &self,

Callers

nothing calls this directly

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected