Function ::std::ops::partial_eq
Perform a partial equality check over two values.
This produces the same behavior as the equality operator (==
).
For non-builtin types this leans on the behavior of the [PARTIAL_EQ
] protocol.
Panics
Panics if we're trying to compare two values which are not comparable.
Examples
use partial_eq;
assert!;
assert!;