@@ -1248,18 +1248,6 @@ pub trait Float
1248
1248
/// Returns the `1` value.
1249
1249
fn one ( ) -> Self ;
1250
1250
1251
- /// Returns true if this value is NaN and false otherwise.
1252
- fn is_nan ( self ) -> bool ;
1253
- /// Returns true if this value is positive infinity or negative infinity and
1254
- /// false otherwise.
1255
- fn is_infinite ( self ) -> bool ;
1256
- /// Returns true if this number is neither infinite nor NaN.
1257
- fn is_finite ( self ) -> bool ;
1258
- /// Returns true if this number is neither zero, infinite, denormal, or NaN.
1259
- fn is_normal ( self ) -> bool ;
1260
- /// Returns the category that this number falls into.
1261
- fn classify ( self ) -> FpCategory ;
1262
-
1263
1251
// FIXME (#5527): These should be associated constants
1264
1252
1265
1253
/// Returns the number of binary digits of mantissa that this type supports.
@@ -1283,6 +1271,18 @@ pub trait Float
1283
1271
/// Returns the largest finite value that this type can represent.
1284
1272
fn max_value ( ) -> Self ;
1285
1273
1274
+ /// Returns true if this value is NaN and false otherwise.
1275
+ fn is_nan ( self ) -> bool ;
1276
+ /// Returns true if this value is positive infinity or negative infinity and
1277
+ /// false otherwise.
1278
+ fn is_infinite ( self ) -> bool ;
1279
+ /// Returns true if this number is neither infinite nor NaN.
1280
+ fn is_finite ( self ) -> bool ;
1281
+ /// Returns true if this number is neither zero, infinite, denormal, or NaN.
1282
+ fn is_normal ( self ) -> bool ;
1283
+ /// Returns the category that this number falls into.
1284
+ fn classify ( self ) -> FpCategory ;
1285
+
1286
1286
/// Returns the mantissa, exponent and sign as integers, respectively.
1287
1287
fn integer_decode ( self ) -> ( u64 , i16 , i8 ) ;
1288
1288
0 commit comments