@@ -4009,65 +4009,58 @@ pub enum FpCategory {
40094009 Normal ,
40104010}
40114011
4012- /// A built-in floating point number.
4012+ // Technically private and only exposed for coretests:
40134013#[ doc( hidden) ]
4014- #[ unstable( feature = "core_float " ,
4015- reason = "stable interface is via `impl f{32,64}` in later crates " ,
4016- issue = "32110 " ) ]
4014+ #[ unstable( feature = "float_internals " ,
4015+ reason = "internal routines only exposed for testing " ,
4016+ issue = "0 " ) ]
40174017pub trait Float : Sized {
40184018 /// Type used by `to_bits` and `from_bits`.
4019- #[ stable( feature = "core_float_bits" , since = "1.25.0" ) ]
40204019 type Bits ;
40214020
40224021 /// Returns `true` if this value is NaN and false otherwise.
4023- #[ stable( feature = "core" , since = "1.6.0" ) ]
40244022 fn is_nan ( self ) -> bool ;
4023+
40254024 /// Returns `true` if this value is positive infinity or negative infinity and
40264025 /// false otherwise.
4027- #[ stable( feature = "core" , since = "1.6.0" ) ]
40284026 fn is_infinite ( self ) -> bool ;
4027+
40294028 /// Returns `true` if this number is neither infinite nor NaN.
4030- #[ stable( feature = "core" , since = "1.6.0" ) ]
40314029 fn is_finite ( self ) -> bool ;
4030+
40324031 /// Returns `true` if this number is neither zero, infinite, denormal, or NaN.
4033- #[ stable( feature = "core" , since = "1.6.0" ) ]
40344032 fn is_normal ( self ) -> bool ;
4033+
40354034 /// Returns the category that this number falls into.
4036- #[ stable( feature = "core" , since = "1.6.0" ) ]
40374035 fn classify ( self ) -> FpCategory ;
40384036
40394037 /// Returns `true` if `self` is positive, including `+0.0` and
40404038 /// `Float::infinity()`.
4041- #[ stable( feature = "core" , since = "1.6.0" ) ]
40424039 fn is_sign_positive ( self ) -> bool ;
4040+
40434041 /// Returns `true` if `self` is negative, including `-0.0` and
40444042 /// `Float::neg_infinity()`.
4045- #[ stable( feature = "core" , since = "1.6.0" ) ]
40464043 fn is_sign_negative ( self ) -> bool ;
40474044
40484045 /// Take the reciprocal (inverse) of a number, `1/x`.
4049- #[ stable( feature = "core" , since = "1.6.0" ) ]
40504046 fn recip ( self ) -> Self ;
40514047
40524048 /// Convert radians to degrees.
4053- #[ stable( feature = "deg_rad_conversions" , since="1.7.0" ) ]
40544049 fn to_degrees ( self ) -> Self ;
4050+
40554051 /// Convert degrees to radians.
4056- #[ stable( feature = "deg_rad_conversions" , since="1.7.0" ) ]
40574052 fn to_radians ( self ) -> Self ;
40584053
40594054 /// Returns the maximum of the two numbers.
4060- #[ stable( feature = "core_float_min_max" , since="1.20.0" ) ]
40614055 fn max ( self , other : Self ) -> Self ;
4056+
40624057 /// Returns the minimum of the two numbers.
4063- #[ stable( feature = "core_float_min_max" , since="1.20.0" ) ]
40644058 fn min ( self , other : Self ) -> Self ;
40654059
40664060 /// Raw transmutation to integer.
4067- #[ stable( feature = "core_float_bits" , since="1.25.0" ) ]
40684061 fn to_bits ( self ) -> Self :: Bits ;
4062+
40694063 /// Raw transmutation from integer.
4070- #[ stable( feature = "core_float_bits" , since="1.25.0" ) ]
40714064 fn from_bits ( v : Self :: Bits ) -> Self ;
40724065}
40734066
0 commit comments