File tree 4 files changed +24
-0
lines changed
4 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -515,11 +515,14 @@ impl f128 {
515
515
/// # }
516
516
/// ```
517
517
///
518
+ /// This operation corresponds to IEEE-754 `nextUp`.
519
+ ///
518
520
/// [`NEG_INFINITY`]: Self::NEG_INFINITY
519
521
/// [`INFINITY`]: Self::INFINITY
520
522
/// [`MIN`]: Self::MIN
521
523
/// [`MAX`]: Self::MAX
522
524
#[ inline]
525
+ #[ doc( alias = "nextUp" ) ]
523
526
#[ unstable( feature = "f128" , issue = "116909" ) ]
524
527
pub const fn next_up ( self ) -> Self {
525
528
// Some targets violate Rust's assumption of IEEE semantics, e.g. by flushing
@@ -567,11 +570,14 @@ impl f128 {
567
570
/// # }
568
571
/// ```
569
572
///
573
+ /// This operation corresponds to IEEE-754 `nextDown`.
574
+ ///
570
575
/// [`NEG_INFINITY`]: Self::NEG_INFINITY
571
576
/// [`INFINITY`]: Self::INFINITY
572
577
/// [`MIN`]: Self::MIN
573
578
/// [`MAX`]: Self::MAX
574
579
#[ inline]
580
+ #[ doc( alias = "nextDown" ) ]
575
581
#[ unstable( feature = "f128" , issue = "116909" ) ]
576
582
pub const fn next_down ( self ) -> Self {
577
583
// Some targets violate Rust's assumption of IEEE semantics, e.g. by flushing
Original file line number Diff line number Diff line change @@ -508,11 +508,14 @@ impl f16 {
508
508
/// # }
509
509
/// ```
510
510
///
511
+ /// This operation corresponds to IEEE-754 `nextUp`.
512
+ ///
511
513
/// [`NEG_INFINITY`]: Self::NEG_INFINITY
512
514
/// [`INFINITY`]: Self::INFINITY
513
515
/// [`MIN`]: Self::MIN
514
516
/// [`MAX`]: Self::MAX
515
517
#[ inline]
518
+ #[ doc( alias = "nextUp" ) ]
516
519
#[ unstable( feature = "f16" , issue = "116909" ) ]
517
520
pub const fn next_up ( self ) -> Self {
518
521
// Some targets violate Rust's assumption of IEEE semantics, e.g. by flushing
@@ -560,11 +563,14 @@ impl f16 {
560
563
/// # }
561
564
/// ```
562
565
///
566
+ /// This operation corresponds to IEEE-754 `nextDown`.
567
+ ///
563
568
/// [`NEG_INFINITY`]: Self::NEG_INFINITY
564
569
/// [`INFINITY`]: Self::INFINITY
565
570
/// [`MIN`]: Self::MIN
566
571
/// [`MAX`]: Self::MAX
567
572
#[ inline]
573
+ #[ doc( alias = "nextDown" ) ]
568
574
#[ unstable( feature = "f16" , issue = "116909" ) ]
569
575
pub const fn next_down ( self ) -> Self {
570
576
// Some targets violate Rust's assumption of IEEE semantics, e.g. by flushing
Original file line number Diff line number Diff line change @@ -733,11 +733,14 @@ impl f32 {
733
733
/// assert_eq!(16777216f32.next_up(), 16777218.0);
734
734
/// ```
735
735
///
736
+ /// This operation corresponds to IEEE-754 `nextUp`.
737
+ ///
736
738
/// [`NEG_INFINITY`]: Self::NEG_INFINITY
737
739
/// [`INFINITY`]: Self::INFINITY
738
740
/// [`MIN`]: Self::MIN
739
741
/// [`MAX`]: Self::MAX
740
742
#[ inline]
743
+ #[ doc( alias = "nextUp" ) ]
741
744
#[ stable( feature = "float_next_up_down" , since = "CURRENT_RUSTC_VERSION" ) ]
742
745
#[ rustc_const_stable( feature = "float_next_up_down" , since = "CURRENT_RUSTC_VERSION" ) ]
743
746
pub const fn next_up ( self ) -> Self {
@@ -781,11 +784,14 @@ impl f32 {
781
784
/// assert_eq!(clamped.next_up(), 1.0);
782
785
/// ```
783
786
///
787
+ /// This operation corresponds to IEEE-754 `nextDown`.
788
+ ///
784
789
/// [`NEG_INFINITY`]: Self::NEG_INFINITY
785
790
/// [`INFINITY`]: Self::INFINITY
786
791
/// [`MIN`]: Self::MIN
787
792
/// [`MAX`]: Self::MAX
788
793
#[ inline]
794
+ #[ doc( alias = "nextDown" ) ]
789
795
#[ stable( feature = "float_next_up_down" , since = "CURRENT_RUSTC_VERSION" ) ]
790
796
#[ rustc_const_stable( feature = "float_next_up_down" , since = "CURRENT_RUSTC_VERSION" ) ]
791
797
pub const fn next_down ( self ) -> Self {
Original file line number Diff line number Diff line change @@ -750,11 +750,14 @@ impl f64 {
750
750
/// assert_eq!(9007199254740992f64.next_up(), 9007199254740994.0);
751
751
/// ```
752
752
///
753
+ /// This operation corresponds to IEEE-754 `nextUp`.
754
+ ///
753
755
/// [`NEG_INFINITY`]: Self::NEG_INFINITY
754
756
/// [`INFINITY`]: Self::INFINITY
755
757
/// [`MIN`]: Self::MIN
756
758
/// [`MAX`]: Self::MAX
757
759
#[ inline]
760
+ #[ doc( alias = "nextUp" ) ]
758
761
#[ stable( feature = "float_next_up_down" , since = "CURRENT_RUSTC_VERSION" ) ]
759
762
#[ rustc_const_stable( feature = "float_next_up_down" , since = "CURRENT_RUSTC_VERSION" ) ]
760
763
pub const fn next_up ( self ) -> Self {
@@ -798,11 +801,14 @@ impl f64 {
798
801
/// assert_eq!(clamped.next_up(), 1.0);
799
802
/// ```
800
803
///
804
+ /// This operation corresponds to IEEE-754 `nextDown`.
805
+ ///
801
806
/// [`NEG_INFINITY`]: Self::NEG_INFINITY
802
807
/// [`INFINITY`]: Self::INFINITY
803
808
/// [`MIN`]: Self::MIN
804
809
/// [`MAX`]: Self::MAX
805
810
#[ inline]
811
+ #[ doc( alias = "nextDown" ) ]
806
812
#[ stable( feature = "float_next_up_down" , since = "CURRENT_RUSTC_VERSION" ) ]
807
813
#[ rustc_const_stable( feature = "float_next_up_down" , since = "CURRENT_RUSTC_VERSION" ) ]
808
814
pub const fn next_down ( self ) -> Self {
You can’t perform that action at this time.
0 commit comments