Function partial_eq

Source
pub fn partial_eq<T>() -> PartialEqClass<T>
where T: ?Sized + PartialEq<T>,
Expand description

This function returns an EqClass for T which considers every instance to be equal to every other instace where the instances do not equal to themselves by PartialEq::eq; otherwise PartialEq::eq is followed.

ยงExamples

use classific::{EqClass, partial_eq};

assert!(partial_eq().eq(&f64::NAN, &f64::NAN));