(&self, other: &Box<dyn Value>)
| 79 | } |
| 80 | |
| 81 | fn lt_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 82 | if let Some(other_interval) = other.as_any().downcast_ref::<IntervalValue>() { |
| 83 | let result = self.interval.lt(&other_interval.interval); |
| 84 | return Ok(Box::new(BoolValue::new(result))); |
| 85 | } |
| 86 | Err("Unexpected type to perform `<` with".to_string()) |
| 87 | } |
| 88 | |
| 89 | fn lte_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 90 | if let Some(other_interval) = other.as_any().downcast_ref::<IntervalValue>() { |