Trait std::cmp::Eq [] [src]

pub trait Eq: PartialEq<Self> {
    fn assert_receiver_is_total_eq(&self) { ... }
}

Trait for equality comparisons which are equivalence relations.

This means, that in addition to a == b and a != b being strict inverses, the equality must be (for all a, b and c):

This property cannot be checked by the compiler, and therefore Eq implies PartialEq, and has no extra methods.

This trait can be used with #[derive].

Provided Methods

fn assert_receiver_is_total_eq(&self)

Implementors