(&self, other: &Box<dyn Value>)
| 213 | } |
| 214 | |
| 215 | fn lt_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 216 | if let Some(other_text) = other.as_any().downcast_ref::<DateValue>() { |
| 217 | return Ok(Box::new(BoolValue::new( |
| 218 | self.timestamp < other_text.timestamp, |
| 219 | ))); |
| 220 | } |
| 221 | Err("Unexpected type to perform `<` with".to_string()) |
| 222 | } |
| 223 | |
| 224 | fn group_lt_op( |
| 225 | &self, |
no test coverage detected