Method
gte_op
(&self, other: &Box<dyn Value>)
Source from the content-addressed store, hash-verified
| 157 | } |
| 158 | |
| 159 | fn gte_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 160 | if let Some(other_text) = other.as_any().downcast_ref::<DateTimeValue>() { |
| 161 | let are_equals = self.value >= other_text.value; |
| 162 | return Ok(Box::new(BoolValue { value: are_equals })); |
| 163 | } |
| 164 | Err("Unexpected type to perform `>=` with".to_string()) |
| 165 | } |
| 166 | |
| 167 | fn group_gte_op( |
| 168 | &self, |
Callers
nothing calls this directly
Tested by
no test coverage detected