pub trait PartialEq<Rhs: ?Sized = Self> { fn op_eq(&self, other: &Rhs) -> bool; fn op_ne(&self, other: &Rhs) -> bool { ... } }
This method tests for self and other values to be equal, and is used by ==.
self
other
==
This method tests for !=.
!=