(&self, other: &Box<dyn Value>)
| 119 | } |
| 120 | |
| 121 | fn div_op(&self, other: &Box<dyn Value>) -> Result<Box<dyn Value>, String> { |
| 122 | if let Some(value) = other.as_int() { |
| 123 | let interval = self.interval.div(value)?; |
| 124 | return Ok(Box::new(IntervalValue::new(interval))); |
| 125 | } |
| 126 | Err("Unexpected type to perform `/` with".to_string()) |
| 127 | } |
| 128 | } |