(&self, other: &Self)
| 2470 | |
| 2471 | impl PartialEq for Function { |
| 2472 | fn eq(&self, other: &Self) -> bool { |
| 2473 | if self.handle == other.handle { |
| 2474 | return true; |
| 2475 | } |
| 2476 | self.start() == other.start() |
| 2477 | && self.arch() == other.arch() |
| 2478 | && self.platform() == other.platform() |
| 2479 | } |
| 2480 | } |
| 2481 | |
| 2482 | #[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)] |