From cfb2e2acd72c651f97f285a86956f3f01a461a2d Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Fri, 2 Jan 2015 22:33:07 +1100 Subject: num: remove deprecated functionality. --- src/libcore/num/mod.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/libcore/num') diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 426c858d408..87973eacc66 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -1248,18 +1248,6 @@ pub trait Float /// Returns the `1` value. fn one() -> Self; - /// Returns true if this value is NaN and false otherwise. - fn is_nan(self) -> bool; - /// Returns true if this value is positive infinity or negative infinity and - /// false otherwise. - fn is_infinite(self) -> bool; - /// Returns true if this number is neither infinite nor NaN. - fn is_finite(self) -> bool; - /// Returns true if this number is neither zero, infinite, denormal, or NaN. - fn is_normal(self) -> bool; - /// Returns the category that this number falls into. - fn classify(self) -> FpCategory; - // FIXME (#5527): These should be associated constants /// Returns the number of binary digits of mantissa that this type supports. @@ -1283,6 +1271,18 @@ pub trait Float /// Returns the largest finite value that this type can represent. fn max_value() -> Self; + /// Returns true if this value is NaN and false otherwise. + fn is_nan(self) -> bool; + /// Returns true if this value is positive infinity or negative infinity and + /// false otherwise. + fn is_infinite(self) -> bool; + /// Returns true if this number is neither infinite nor NaN. + fn is_finite(self) -> bool; + /// Returns true if this number is neither zero, infinite, denormal, or NaN. + fn is_normal(self) -> bool; + /// Returns the category that this number falls into. + fn classify(self) -> FpCategory; + /// Returns the mantissa, exponent and sign as integers, respectively. fn integer_decode(self) -> (u64, i16, i8); -- cgit 1.4.1-3-g733a5