@@ -163,7 +163,9 @@ pub trait AsciiExt {
163
163
/// # Note
164
164
///
165
165
/// This method will be deprecated in favor of the identically-named
166
- /// inherent methods on `u8`, `char`, `[u8]` and `str`.
166
+ /// inherent methods on `u8` and `char`.
167
+ /// For `[u8]` use `.iter().all(u8::is_ascii_alphabetic)`.
168
+ /// For `str` use `.bytes().all(u8::is_ascii_alphabetic)`.
167
169
#[ unstable( feature = "ascii_ctype" , issue = "39658" ) ]
168
170
#[ rustc_deprecated( since = "1.26.0" , reason = "use inherent methods instead" ) ]
169
171
fn is_ascii_alphabetic ( & self ) -> bool { unimplemented ! ( ) ; }
@@ -176,7 +178,9 @@ pub trait AsciiExt {
176
178
/// # Note
177
179
///
178
180
/// This method will be deprecated in favor of the identically-named
179
- /// inherent methods on `u8`, `char`, `[u8]` and `str`.
181
+ /// inherent methods on `u8` and `char`.
182
+ /// For `[u8]` use `.iter().all(u8::is_ascii_uppercase)`.
183
+ /// For `str` use `.bytes().all(u8::is_ascii_uppercase)`.
180
184
#[ unstable( feature = "ascii_ctype" , issue = "39658" ) ]
181
185
#[ rustc_deprecated( since = "1.26.0" , reason = "use inherent methods instead" ) ]
182
186
fn is_ascii_uppercase ( & self ) -> bool { unimplemented ! ( ) ; }
@@ -189,7 +193,9 @@ pub trait AsciiExt {
189
193
/// # Note
190
194
///
191
195
/// This method will be deprecated in favor of the identically-named
192
- /// inherent methods on `u8`, `char`, `[u8]` and `str`.
196
+ /// inherent methods on `u8` and `char`.
197
+ /// For `[u8]` use `.iter().all(u8::is_ascii_lowercase)`.
198
+ /// For `str` use `.bytes().all(u8::is_ascii_lowercase)`.
193
199
#[ unstable( feature = "ascii_ctype" , issue = "39658" ) ]
194
200
#[ rustc_deprecated( since = "1.26.0" , reason = "use inherent methods instead" ) ]
195
201
fn is_ascii_lowercase ( & self ) -> bool { unimplemented ! ( ) ; }
@@ -203,7 +209,9 @@ pub trait AsciiExt {
203
209
/// # Note
204
210
///
205
211
/// This method will be deprecated in favor of the identically-named
206
- /// inherent methods on `u8`, `char`, `[u8]` and `str`.
212
+ /// inherent methods on `u8` and `char`.
213
+ /// For `[u8]` use `.iter().all(u8::is_ascii_alphanumeric)`.
214
+ /// For `str` use `.bytes().all(u8::is_ascii_alphanumeric)`.
207
215
#[ unstable( feature = "ascii_ctype" , issue = "39658" ) ]
208
216
#[ rustc_deprecated( since = "1.26.0" , reason = "use inherent methods instead" ) ]
209
217
fn is_ascii_alphanumeric ( & self ) -> bool { unimplemented ! ( ) ; }
@@ -216,7 +224,9 @@ pub trait AsciiExt {
216
224
/// # Note
217
225
///
218
226
/// This method will be deprecated in favor of the identically-named
219
- /// inherent methods on `u8`, `char`, `[u8]` and `str`.
227
+ /// inherent methods on `u8` and `char`.
228
+ /// For `[u8]` use `.iter().all(u8::is_ascii_digit)`.
229
+ /// For `str` use `.bytes().all(u8::is_ascii_digit)`.
220
230
#[ unstable( feature = "ascii_ctype" , issue = "39658" ) ]
221
231
#[ rustc_deprecated( since = "1.26.0" , reason = "use inherent methods instead" ) ]
222
232
fn is_ascii_digit ( & self ) -> bool { unimplemented ! ( ) ; }
@@ -230,7 +240,9 @@ pub trait AsciiExt {
230
240
/// # Note
231
241
///
232
242
/// This method will be deprecated in favor of the identically-named
233
- /// inherent methods on `u8`, `char`, `[u8]` and `str`.
243
+ /// inherent methods on `u8` and `char`.
244
+ /// For `[u8]` use `.iter().all(u8::is_ascii_hexdigit)`.
245
+ /// For `str` use `.bytes().all(u8::is_ascii_hexdigit)`.
234
246
#[ unstable( feature = "ascii_ctype" , issue = "39658" ) ]
235
247
#[ rustc_deprecated( since = "1.26.0" , reason = "use inherent methods instead" ) ]
236
248
fn is_ascii_hexdigit ( & self ) -> bool { unimplemented ! ( ) ; }
@@ -248,7 +260,9 @@ pub trait AsciiExt {
248
260
/// # Note
249
261
///
250
262
/// This method will be deprecated in favor of the identically-named
251
- /// inherent methods on `u8`, `char`, `[u8]` and `str`.
263
+ /// inherent methods on `u8` and `char`.
264
+ /// For `[u8]` use `.iter().all(u8::is_ascii_punctuation)`.
265
+ /// For `str` use `.bytes().all(u8::is_ascii_punctuation)`.
252
266
#[ unstable( feature = "ascii_ctype" , issue = "39658" ) ]
253
267
#[ rustc_deprecated( since = "1.26.0" , reason = "use inherent methods instead" ) ]
254
268
fn is_ascii_punctuation ( & self ) -> bool { unimplemented ! ( ) ; }
@@ -261,7 +275,9 @@ pub trait AsciiExt {
261
275
/// # Note
262
276
///
263
277
/// This method will be deprecated in favor of the identically-named
264
- /// inherent methods on `u8`, `char`, `[u8]` and `str`.
278
+ /// inherent methods on `u8` and `char`.
279
+ /// For `[u8]` use `.iter().all(u8::is_ascii_graphic)`.
280
+ /// For `str` use `.bytes().all(u8::is_ascii_graphic)`.
265
281
#[ unstable( feature = "ascii_ctype" , issue = "39658" ) ]
266
282
#[ rustc_deprecated( since = "1.26.0" , reason = "use inherent methods instead" ) ]
267
283
fn is_ascii_graphic ( & self ) -> bool { unimplemented ! ( ) ; }
@@ -291,7 +307,9 @@ pub trait AsciiExt {
291
307
/// # Note
292
308
///
293
309
/// This method will be deprecated in favor of the identically-named
294
- /// inherent methods on `u8`, `char`, `[u8]` and `str`.
310
+ /// inherent methods on `u8` and `char`.
311
+ /// For `[u8]` use `.iter().all(u8::is_ascii_whitespace)`.
312
+ /// For `str` use `.bytes().all(u8::is_ascii_whitespace)`.
295
313
#[ unstable( feature = "ascii_ctype" , issue = "39658" ) ]
296
314
#[ rustc_deprecated( since = "1.26.0" , reason = "use inherent methods instead" ) ]
297
315
fn is_ascii_whitespace ( & self ) -> bool { unimplemented ! ( ) ; }
@@ -304,7 +322,9 @@ pub trait AsciiExt {
304
322
/// # Note
305
323
///
306
324
/// This method will be deprecated in favor of the identically-named
307
- /// inherent methods on `u8`, `char`, `[u8]` and `str`.
325
+ /// inherent methods on `u8` and `char`.
326
+ /// For `[u8]` use `.iter().all(u8::is_ascii_control)`.
327
+ /// For `str` use `.bytes().all(u8::is_ascii_control)`.
308
328
#[ unstable( feature = "ascii_ctype" , issue = "39658" ) ]
309
329
#[ rustc_deprecated( since = "1.26.0" , reason = "use inherent methods instead" ) ]
310
330
fn is_ascii_control ( & self ) -> bool { unimplemented ! ( ) ; }
0 commit comments