(&self, other: &Box<dyn Value>)
| 63 | } |
| 64 | |
| 65 | fn gt_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 66 | if let Some(other_interval) = other.as_any().downcast_ref::<IntervalValue>() { |
| 67 | let result = self.interval.gt(&other_interval.interval); |
| 68 | return Ok(Box::new(BoolValue::new(result))); |
| 69 | } |
| 70 | Err("Unexpected type to perform `>` with".to_string()) |
| 71 | } |
| 72 | |
| 73 | fn gte_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 74 | if let Some(other_interval) = other.as_any().downcast_ref::<IntervalValue>() { |