(&self, other: &Box<dyn Value>)
| 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>() { |
| 91 | let result = self.interval.le(&other_interval.interval); |
| 92 | return Ok(Box::new(BoolValue::new(result))); |
| 93 | } |
| 94 | Err("Unexpected type to perform `<=` with".to_string()) |
| 95 | } |
| 96 | |
| 97 | fn add_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 98 | if let Some(other_interval) = other.as_any().downcast_ref::<IntervalValue>() { |