Method
lte_op
(&self, other: &Box<dyn Value>)
Source from the content-addressed store, hash-verified
| 222 | } |
| 223 | |
| 224 | fn lte_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 225 | if let Some(other_text) = other.as_any().downcast_ref::<TimeValue>() { |
| 226 | let are_equals = self.value <= other_text.value; |
| 227 | return Ok(Box::new(BoolValue { value: are_equals })); |
| 228 | } |
| 229 | Err("Unexpected type to perform `<=` with".to_string()) |
| 230 | } |
| 231 | |
| 232 | fn group_lte_op( |
| 233 | &self, |
Callers
nothing calls this directly
Tested by
no test coverage detected