Mark {f32,f64}::{next_up,next_down,midpoint}
inline · patricklam/verify-rust-std@ec74467 (original) (raw)
`@@ -797,6 +797,7 @@ impl f32 {
`
797
797
`` /// [INFINITY
]: Self::INFINITY
``
798
798
`` /// [MIN
]: Self::MIN
``
799
799
`` /// [MAX
]: Self::MAX
``
``
800
`+
#[inline]
`
800
801
`#[unstable(feature = "float_next_up_down", issue = "91399")]
`
801
802
`#[rustc_const_unstable(feature = "float_next_up_down", issue = "91399")]
`
802
803
`pub const fn next_up(self) -> Self {
`
`@@ -845,6 +846,7 @@ impl f32 {
`
845
846
`` /// [INFINITY
]: Self::INFINITY
``
846
847
`` /// [MIN
]: Self::MIN
``
847
848
`` /// [MAX
]: Self::MAX
``
``
849
`+
#[inline]
`
848
850
`#[unstable(feature = "float_next_up_down", issue = "91399")]
`
849
851
`#[rustc_const_unstable(feature = "float_next_up_down", issue = "91399")]
`
850
852
`pub const fn next_down(self) -> Self {
`
`@@ -1042,6 +1044,7 @@ impl f32 {
`
1042
1044
`/// assert_eq!(1f32.midpoint(4.0), 2.5);
`
1043
1045
`/// assert_eq!((-5.5f32).midpoint(8.0), 1.25);
`
1044
1046
```` /// ```
````
``
1047
`+
#[inline]
`
1045
1048
`#[unstable(feature = "num_midpoint", issue = "110840")]
`
1046
1049
`pub fn midpoint(self, other: f32) -> f32 {
`
1047
1050
`cfg_if! {
`