(&self, other: &Box<dyn Value>)
| 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>() { |
| 75 | let result = self.interval.ge(&other_interval.interval); |
| 76 | return Ok(Box::new(BoolValue::new(result))); |
| 77 | } |
| 78 | Err("Unexpected type to perform `>=` with".to_string()) |
| 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>() { |