(&self, other: &dyn Val)
| 426 | } |
| 427 | |
| 428 | fn equals(&self, other: &dyn Val) -> bool { |
| 429 | if other.get_type() != self.get_type() { |
| 430 | false |
| 431 | } else { |
| 432 | match other.downcast_ref::<OpaqueVal>() { |
| 433 | None => false, |
| 434 | Some(other) => self.val.opaque_eq(other.val.deref()), |
| 435 | } |
| 436 | } |
| 437 | } |
| 438 | |
| 439 | fn clone_as_boxed(&self) -> Box<dyn Val> { |
| 440 | Box::new(Self { |