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