Trait std::cmp::Eq

Overview

Trait for equality comparisons.

This trait allows for comparing whether two values are equal or not.

Examples

use std::cmp::Eq;

assert!(1.eq(1));
assert!(!1.eq(2));