Skip to content

Instantly share code, notes, and snippets.

@calvinmetcalf
Created September 4, 2013 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calvinmetcalf/6438766 to your computer and use it in GitHub Desktop.
Save calvinmetcalf/6438766 to your computer and use it in GitHub Desktop.
impl Eq for Point {
fn eq(&self, other: &Point) -> bool { other.x == self.x && other.y == self.y }
fn ne(&self, other: &Point) -> bool { other.x != self.x || other.y != self.y }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment