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

Method lt_op

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

Source from the content-addressed store, hash-verified

192 }
193
194 fn lt_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> {
195 if let Some(other_text) = other.as_any().downcast_ref::<DateTimeValue>() {
196 let are_equals = self.value < other_text.value;
197 return Ok(Box::new(BoolValue { value: are_equals }));
198 }
199 Err("Unexpected type to perform `<` with".to_string())
200 }
201
202 fn group_lt_op(
203 &self,

Callers

nothing calls this directly

Calls 1

as_anyMethod · 0.45

Tested by

no test coverage detected