Objects that implement the binary == and != operators.
trait Eq<Rhs = Self>
where Rhs: ?Sized,
{
/* Required methods */
fn eq(&self, other: &Rhs) -> bool
/* Provided methods */
fn ne(&self, other: &Rhs) -> bool
}| Receiver | Name | Description |
|---|---|---|
&self | eq | The method that will be called by the |
&self | ne | The method that will be called by the |