[][src]Function classific::partial_eq

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

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));