@@ -1921,12 +1921,10 @@ big-endian (network) byte order.
1921
1921
# Examples
1922
1922
1923
1923
```
1924
- #![feature(int_to_from_bytes)]
1925
-
1926
1924
let bytes = " , $swap_op, stringify!( $SelfT) , ".to_be_bytes();
1927
1925
assert_eq!(bytes, " , $be_bytes, ");
1928
1926
```" ) ,
1929
- #[ unstable ( feature = "int_to_from_bytes" , issue = "52963 " ) ]
1927
+ #[ stable ( feature = "int_to_from_bytes" , since = "1.32.0 " ) ]
1930
1928
#[ rustc_const_unstable( feature = "const_int_conversion" ) ]
1931
1929
#[ inline]
1932
1930
pub const fn to_be_bytes( self ) -> [ u8 ; mem:: size_of:: <Self >( ) ] {
@@ -1941,12 +1939,10 @@ little-endian byte order.
1941
1939
# Examples
1942
1940
1943
1941
```
1944
- #![feature(int_to_from_bytes)]
1945
-
1946
1942
let bytes = " , $swap_op, stringify!( $SelfT) , ".to_le_bytes();
1947
1943
assert_eq!(bytes, " , $le_bytes, ");
1948
1944
```" ) ,
1949
- #[ unstable ( feature = "int_to_from_bytes" , issue = "52963 " ) ]
1945
+ #[ stable ( feature = "int_to_from_bytes" , since = "1.32.0 " ) ]
1950
1946
#[ rustc_const_unstable( feature = "const_int_conversion" ) ]
1951
1947
#[ inline]
1952
1948
pub const fn to_le_bytes( self ) -> [ u8 ; mem:: size_of:: <Self >( ) ] {
@@ -1969,16 +1965,14 @@ instead.
1969
1965
# Examples
1970
1966
1971
1967
```
1972
- #![feature(int_to_from_bytes)]
1973
-
1974
1968
let bytes = " , $swap_op, stringify!( $SelfT) , ".to_ne_bytes();
1975
1969
assert_eq!(bytes, if cfg!(target_endian = \" big\" ) {
1976
1970
" , $be_bytes, "
1977
1971
} else {
1978
1972
" , $le_bytes, "
1979
1973
});
1980
1974
```" ) ,
1981
- #[ unstable ( feature = "int_to_from_bytes" , issue = "52963 " ) ]
1975
+ #[ stable ( feature = "int_to_from_bytes" , since = "1.32.0 " ) ]
1982
1976
#[ rustc_const_unstable( feature = "const_int_conversion" ) ]
1983
1977
#[ inline]
1984
1978
pub const fn to_ne_bytes( self ) -> [ u8 ; mem:: size_of:: <Self >( ) ] {
@@ -1993,12 +1987,10 @@ big endian.
1993
1987
# Examples
1994
1988
1995
1989
```
1996
- #![feature(int_to_from_bytes)]
1997
-
1998
1990
let value = " , stringify!( $SelfT) , "::from_be_bytes(" , $be_bytes, ");
1999
1991
assert_eq!(value, " , $swap_op, ");
2000
1992
```" ) ,
2001
- #[ unstable ( feature = "int_to_from_bytes" , issue = "52963 " ) ]
1993
+ #[ stable ( feature = "int_to_from_bytes" , since = "1.32.0 " ) ]
2002
1994
#[ rustc_const_unstable( feature = "const_int_conversion" ) ]
2003
1995
#[ inline]
2004
1996
pub const fn from_be_bytes( bytes: [ u8 ; mem:: size_of:: <Self >( ) ] ) -> Self {
@@ -2014,12 +2006,10 @@ little endian.
2014
2006
# Examples
2015
2007
2016
2008
```
2017
- #![feature(int_to_from_bytes)]
2018
-
2019
2009
let value = " , stringify!( $SelfT) , "::from_le_bytes(" , $le_bytes, ");
2020
2010
assert_eq!(value, " , $swap_op, ");
2021
2011
```" ) ,
2022
- #[ unstable ( feature = "int_to_from_bytes" , issue = "52963 " ) ]
2012
+ #[ stable ( feature = "int_to_from_bytes" , since = "1.32.0 " ) ]
2023
2013
#[ rustc_const_unstable( feature = "const_int_conversion" ) ]
2024
2014
#[ inline]
2025
2015
pub const fn from_le_bytes( bytes: [ u8 ; mem:: size_of:: <Self >( ) ] ) -> Self {
@@ -2041,16 +2031,14 @@ appropriate instead.
2041
2031
# Examples
2042
2032
2043
2033
```
2044
- #![feature(int_to_from_bytes)]
2045
-
2046
2034
let value = " , stringify!( $SelfT) , "::from_ne_bytes(if cfg!(target_endian = \" big\" ) {
2047
2035
" , $be_bytes, "
2048
2036
} else {
2049
2037
" , $le_bytes, "
2050
2038
});
2051
2039
assert_eq!(value, " , $swap_op, ");
2052
2040
```" ) ,
2053
- #[ unstable ( feature = "int_to_from_bytes" , issue = "52963 " ) ]
2041
+ #[ stable ( feature = "int_to_from_bytes" , since = "1.32.0 " ) ]
2054
2042
#[ rustc_const_unstable( feature = "const_int_conversion" ) ]
2055
2043
#[ inline]
2056
2044
pub const fn from_ne_bytes( bytes: [ u8 ; mem:: size_of:: <Self >( ) ] ) -> Self {
@@ -3663,12 +3651,10 @@ big-endian (network) byte order.
3663
3651
# Examples
3664
3652
3665
3653
```
3666
- #![feature(int_to_from_bytes)]
3667
-
3668
3654
let bytes = " , $swap_op, stringify!( $SelfT) , ".to_be_bytes();
3669
3655
assert_eq!(bytes, " , $be_bytes, ");
3670
3656
```" ) ,
3671
- #[ unstable ( feature = "int_to_from_bytes" , issue = "52963 " ) ]
3657
+ #[ stable ( feature = "int_to_from_bytes" , since = "1.32.0 " ) ]
3672
3658
#[ rustc_const_unstable( feature = "const_int_conversion" ) ]
3673
3659
#[ inline]
3674
3660
pub const fn to_be_bytes( self ) -> [ u8 ; mem:: size_of:: <Self >( ) ] {
@@ -3683,12 +3669,10 @@ little-endian byte order.
3683
3669
# Examples
3684
3670
3685
3671
```
3686
- #![feature(int_to_from_bytes)]
3687
-
3688
3672
let bytes = " , $swap_op, stringify!( $SelfT) , ".to_le_bytes();
3689
3673
assert_eq!(bytes, " , $le_bytes, ");
3690
3674
```" ) ,
3691
- #[ unstable ( feature = "int_to_from_bytes" , issue = "52963 " ) ]
3675
+ #[ stable ( feature = "int_to_from_bytes" , since = "1.32.0 " ) ]
3692
3676
#[ rustc_const_unstable( feature = "const_int_conversion" ) ]
3693
3677
#[ inline]
3694
3678
pub const fn to_le_bytes( self ) -> [ u8 ; mem:: size_of:: <Self >( ) ] {
@@ -3711,16 +3695,14 @@ instead.
3711
3695
# Examples
3712
3696
3713
3697
```
3714
- #![feature(int_to_from_bytes)]
3715
-
3716
3698
let bytes = " , $swap_op, stringify!( $SelfT) , ".to_ne_bytes();
3717
3699
assert_eq!(bytes, if cfg!(target_endian = \" big\" ) {
3718
3700
" , $be_bytes, "
3719
3701
} else {
3720
3702
" , $le_bytes, "
3721
3703
});
3722
3704
```" ) ,
3723
- #[ unstable ( feature = "int_to_from_bytes" , issue = "52963 " ) ]
3705
+ #[ stable ( feature = "int_to_from_bytes" , since = "1.32.0 " ) ]
3724
3706
#[ rustc_const_unstable( feature = "const_int_conversion" ) ]
3725
3707
#[ inline]
3726
3708
pub const fn to_ne_bytes( self ) -> [ u8 ; mem:: size_of:: <Self >( ) ] {
@@ -3735,12 +3717,10 @@ big endian.
3735
3717
# Examples
3736
3718
3737
3719
```
3738
- #![feature(int_to_from_bytes)]
3739
-
3740
3720
let value = " , stringify!( $SelfT) , "::from_be_bytes(" , $be_bytes, ");
3741
3721
assert_eq!(value, " , $swap_op, ");
3742
3722
```" ) ,
3743
- #[ unstable ( feature = "int_to_from_bytes" , issue = "52963 " ) ]
3723
+ #[ stable ( feature = "int_to_from_bytes" , since = "1.32.0 " ) ]
3744
3724
#[ rustc_const_unstable( feature = "const_int_conversion" ) ]
3745
3725
#[ inline]
3746
3726
pub const fn from_be_bytes( bytes: [ u8 ; mem:: size_of:: <Self >( ) ] ) -> Self {
@@ -3756,12 +3736,10 @@ little endian.
3756
3736
# Examples
3757
3737
3758
3738
```
3759
- #![feature(int_to_from_bytes)]
3760
-
3761
3739
let value = " , stringify!( $SelfT) , "::from_le_bytes(" , $le_bytes, ");
3762
3740
assert_eq!(value, " , $swap_op, ");
3763
3741
```" ) ,
3764
- #[ unstable ( feature = "int_to_from_bytes" , issue = "52963 " ) ]
3742
+ #[ stable ( feature = "int_to_from_bytes" , since = "1.32.0 " ) ]
3765
3743
#[ rustc_const_unstable( feature = "const_int_conversion" ) ]
3766
3744
#[ inline]
3767
3745
pub const fn from_le_bytes( bytes: [ u8 ; mem:: size_of:: <Self >( ) ] ) -> Self {
@@ -3783,16 +3761,14 @@ appropriate instead.
3783
3761
# Examples
3784
3762
3785
3763
```
3786
- #![feature(int_to_from_bytes)]
3787
-
3788
3764
let value = " , stringify!( $SelfT) , "::from_ne_bytes(if cfg!(target_endian = \" big\" ) {
3789
3765
" , $be_bytes, "
3790
3766
} else {
3791
3767
" , $le_bytes, "
3792
3768
});
3793
3769
assert_eq!(value, " , $swap_op, ");
3794
3770
```" ) ,
3795
- #[ unstable ( feature = "int_to_from_bytes" , issue = "52963 " ) ]
3771
+ #[ stable ( feature = "int_to_from_bytes" , since = "1.32.0 " ) ]
3796
3772
#[ rustc_const_unstable( feature = "const_int_conversion" ) ]
3797
3773
#[ inline]
3798
3774
pub const fn from_ne_bytes( bytes: [ u8 ; mem:: size_of:: <Self >( ) ] ) -> Self {
0 commit comments