(&self, other: &Box<dyn Value>)
| 30 | } |
| 31 | |
| 32 | fn equals(&self, other: &Box<dyn Value>) -> bool { |
| 33 | if let Some(other_int) = other.as_any().downcast_ref::<IntValue>() { |
| 34 | return self.value == other_int.value; |
| 35 | } |
| 36 | false |
| 37 | } |
| 38 | |
| 39 | fn compare(&self, other: &Box<dyn Value>) -> Option<Ordering> { |
| 40 | if let Some(other_int) = other.as_any().downcast_ref::<IntValue>() { |