@@ -173,84 +173,84 @@ pub unsafe fn move_val_init<T>(dst: &mut T, src: T) {
173
173
///
174
174
/// On little endian, this is a no-op. On big endian, the bytes are swapped.
175
175
#[ inline]
176
- #[ stable ]
176
+ #[ deprecated = "use `Int::to_little_endian` instead" ]
177
177
pub fn to_le16 ( x : u16 ) -> u16 { x. to_little_endian ( ) }
178
178
179
179
/// Convert an u32 to little endian from the target's endianness.
180
180
///
181
181
/// On little endian, this is a no-op. On big endian, the bytes are swapped.
182
182
#[ inline]
183
- #[ stable ]
183
+ #[ deprecated = "use `Int::to_little_endian` instead" ]
184
184
pub fn to_le32 ( x : u32 ) -> u32 { x. to_little_endian ( ) }
185
185
186
186
/// Convert an u64 to little endian from the target's endianness.
187
187
///
188
188
/// On little endian, this is a no-op. On big endian, the bytes are swapped.
189
189
#[ inline]
190
- #[ stable ]
190
+ #[ deprecated = "use `Int::to_little_endian` instead" ]
191
191
pub fn to_le64 ( x : u64 ) -> u64 { x. to_little_endian ( ) }
192
192
193
193
/// Convert an u16 to big endian from the target's endianness.
194
194
///
195
195
/// On big endian, this is a no-op. On little endian, the bytes are swapped.
196
196
#[ inline]
197
- #[ stable ]
197
+ #[ deprecated = "use `Int::to_big_endian` instead" ]
198
198
pub fn to_be16 ( x : u16 ) -> u16 { x. to_big_endian ( ) }
199
199
200
200
/// Convert an u32 to big endian from the target's endianness.
201
201
///
202
202
/// On big endian, this is a no-op. On little endian, the bytes are swapped.
203
203
#[ inline]
204
- #[ stable ]
204
+ #[ deprecated = "use `Int::to_big_endian` instead" ]
205
205
pub fn to_be32 ( x : u32 ) -> u32 { x. to_big_endian ( ) }
206
206
207
207
/// Convert an u64 to big endian from the target's endianness.
208
208
///
209
209
/// On big endian, this is a no-op. On little endian, the bytes are swapped.
210
210
#[ inline]
211
- #[ stable ]
211
+ #[ deprecated = "use `Int::to_big_endian` instead" ]
212
212
pub fn to_be64 ( x : u64 ) -> u64 { x. to_big_endian ( ) }
213
213
214
214
/// Convert an u16 from little endian to the target's endianness.
215
215
///
216
216
/// On little endian, this is a no-op. On big endian, the bytes are swapped.
217
217
#[ inline]
218
- #[ stable ]
218
+ #[ deprecated = "use `Int::from_little_endian` instead" ]
219
219
pub fn from_le16 ( x : u16 ) -> u16 { Int :: from_little_endian ( x) }
220
220
221
221
/// Convert an u32 from little endian to the target's endianness.
222
222
///
223
223
/// On little endian, this is a no-op. On big endian, the bytes are swapped.
224
224
#[ inline]
225
- #[ stable ]
225
+ #[ deprecated = "use `Int::from_little_endian` instead" ]
226
226
pub fn from_le32 ( x : u32 ) -> u32 { Int :: from_little_endian ( x) }
227
227
228
228
/// Convert an u64 from little endian to the target's endianness.
229
229
///
230
230
/// On little endian, this is a no-op. On big endian, the bytes are swapped.
231
231
#[ inline]
232
- #[ stable ]
232
+ #[ deprecated = "use `Int::from_little_endian` instead" ]
233
233
pub fn from_le64 ( x : u64 ) -> u64 { Int :: from_little_endian ( x) }
234
234
235
235
/// Convert an u16 from big endian to the target's endianness.
236
236
///
237
237
/// On big endian, this is a no-op. On little endian, the bytes are swapped.
238
238
#[ inline]
239
- #[ stable ]
239
+ #[ deprecated = "use `Int::from_big_endian` instead" ]
240
240
pub fn from_be16 ( x : u16 ) -> u16 { Int :: from_big_endian ( x) }
241
241
242
242
/// Convert an u32 from big endian to the target's endianness.
243
243
///
244
244
/// On big endian, this is a no-op. On little endian, the bytes are swapped.
245
245
#[ inline]
246
- #[ stable ]
246
+ #[ deprecated = "use `Int::from_big_endian` instead" ]
247
247
pub fn from_be32 ( x : u32 ) -> u32 { Int :: from_big_endian ( x) }
248
248
249
249
/// Convert an u64 from big endian to the target's endianness.
250
250
///
251
251
/// On big endian, this is a no-op. On little endian, the bytes are swapped.
252
252
#[ inline]
253
- #[ stable ]
253
+ #[ deprecated = "use `Int::from_big_endian` instead" ]
254
254
pub fn from_be64 ( x : u64 ) -> u64 { Int :: from_big_endian ( x) }
255
255
256
256
/// Swap the values at two mutable locations of the same type, without
0 commit comments