checks if a node is equal to another by their id (ids are unique) Arguments: other: The other node to compare to. Returns: True if the nodes are equal, false otherwise.:
(&self, other: Bound<PyNode>)
| 119 | /// Returns: |
| 120 | /// True if the nodes are equal, false otherwise.: |
| 121 | fn __eq__(&self, other: Bound<PyNode>) -> bool { |
| 122 | self.node.id() == other.get().node.id() |
| 123 | } |
| 124 | |
| 125 | fn __ne__(&self, other: Bound<PyNode>) -> bool { |
| 126 | self.node.id() != other.get().node.id() |