(&self, other: &Box<dyn Value>)
| 249 | } |
| 250 | |
| 251 | fn lte_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 252 | if let Some(other_text) = other.as_any().downcast_ref::<DateValue>() { |
| 253 | return Ok(Box::new(BoolValue::new( |
| 254 | self.timestamp <= other_text.timestamp, |
| 255 | ))); |
| 256 | } |
| 257 | Err("Unexpected type to perform `<=` with".to_string()) |
| 258 | } |
| 259 | |
| 260 | fn group_lte_op( |
| 261 | &self, |
no test coverage detected