Method
lt_op
(&self, other: &Box<dyn Value>)
Source from the content-addressed store, hash-verified
| 187 | } |
| 188 | |
| 189 | fn lt_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 190 | if let Some(other_text) = other.as_any().downcast_ref::<TimeValue>() { |
| 191 | let are_equals = self.value < other_text.value; |
| 192 | return Ok(Box::new(BoolValue { value: are_equals })); |
| 193 | } |
| 194 | Err("Unexpected type to perform `<` with".to_string()) |
| 195 | } |
| 196 | |
| 197 | fn group_lt_op( |
| 198 | &self, |
Callers
nothing calls this directly
Tested by
no test coverage detected