pub fn partial_cmp(&self, number_kind: &NumberKind, other: &Number) -> Option<cmp::Ordering> {
        match number_kind {
            NumberKind::I64 => (self.0 as i64).partial_cmp(&(other.0 as i64)),
            NumberKind::F64 => {
                let current = u64_to_f64(self.0);
                let other = u64_to_f64(other.0);
                current.partial_cmp(&other)
            }
            NumberKind::U64 => self.0.partial_cmp(&other.0),
        }
    }
/// Compares this number to the given other number. Both should be of the same kind.
Compares this number to the given other number. Both should be of the same kind.
Compares this number to the given other number . Both should be of the same kind .
pub fn partial_cmp(&self, number_kind: &NumberKind, other: &Number) -> Option<cmp::Ordering> {
        match number_kind {
            NumberKind::I64 => (self.0 as i64).partial_cmp(&(other.0 as i64)),
            NumberKind::F64 => {
                let current = u64_to_f64(self.0);
                let other = u64_to_f64(other.0);
                current.partial_cmp(&other)
            }
            NumberKind::U64 => self.0.partial_cmp(&other.0),
        }
    }
pub fn partial_cmp ( & self , number_kind : & NumberKind , other : & Number ) -> Option < cmp :: Ordering > { match number_kind { NumberKind :: I64 => ( self . 0 as i64 ) . partial_cmp ( & ( other . 0 as i64 ) ) , NumberKind :: F64 => { let current = u64_to_f64 ( self . 0 ) ; let other = u64_to_f64 ( other . 0 ) ; current . partial_cmp ( & other ) } NumberKind :: U64 => self . 0 . partial_cmp ( & other . 0 ) , } }
Compares this number to the given other number.
Compares this number to the given other number .
&self
number_kind
&NumberKind
other
&Number
&self
number_kind
&NumberKind
other
&Number