honestintervals 0.2.0

Comprehensive, correctly rounding interval arithmetic library.
Documentation
1
2
3
4
5
6
7
8
9
10
use super::def::Interval;

use fp::Float;

impl<BOUND: Float> PartialEq for Interval<BOUND> {
    #[inline]
    fn eq(&self, rhs: &Self) -> bool {
        self.is_nan() && rhs.is_nan() || self.lo == rhs.lo && self.hi == rhs.hi
    }
}