Matthias Krüger
ea0b6504fa
Rollup merge of #111009 - scottmcm:ascii-char, r=BurntSushi
Add `ascii::Char` (ACP#179)
ACP second: https://github.com/rust-lang/libs-team/issues/179#issuecomment-1527900570
New tracking issue: https://github.com/rust-lang/rust/issues/110998
For now this is an `enum` as `@kupiakos` [suggested](https://github.com/rust-lang/libs-team/issues/179#issuecomment-1527959724), with the variants under a different feature flag.
There's lots more things that could be added here, and place for further doc updates, but this seems like a plausible starting point PR.
I've gone through and put an `as_ascii` next to every `is_ascii`: on `u8`, `char`, `[u8]`, and `str`.
As a demonstration, made a commit updating some formatting code to use this: https://github.com/scottmcm/rust/commit/ascii-char-in-fmt (I don't want to include that in this PR, though, because that brings in perf questions that don't exist if this is just adding new unstable APIs.)
2023-05-04 19:18:21 +02:00
..
2023-04-16 06:49:27 +00:00
2022-12-11 01:20:18 -05:00
2022-12-11 01:20:18 -05:00
2023-04-12 19:27:18 +02:00
2023-05-03 10:24:56 +01:00
2023-04-28 08:47:55 -07:00
2023-05-01 13:25:09 +02:00
2023-05-01 13:28:19 +02:00
2022-08-18 18:07:39 -04:00
2023-04-08 00:09:54 +08:00
2023-04-27 15:56:57 +02:00
2023-03-06 12:24:15 +01:00
2023-04-28 08:47:55 -07:00
2023-05-03 16:42:48 -07:00
2023-05-03 16:42:48 -07:00
2023-04-27 20:24:18 +02:00
2022-11-13 12:01:42 -08:00
2023-04-25 00:08:35 +02:00
2023-05-03 22:09:33 -07:00
2022-12-30 14:00:40 +01:00
2023-04-11 20:28:46 -07:00
2022-09-26 10:14:45 +02:00
2023-04-13 22:41:55 +01:00
2023-04-13 22:41:55 +01:00
2023-05-01 13:25:09 +02:00
2023-04-26 02:10:22 -04:00
2023-04-25 00:08:37 +02:00
2022-12-31 15:32:09 +05:30
2023-03-17 21:00:10 -07:00
2023-04-25 00:08:37 +02:00
2023-05-01 17:10:22 +02:00
2022-08-23 16:12:58 +08:00
2023-05-03 20:34:47 +00:00
2023-05-01 13:25:09 +02:00
2022-12-30 14:00:42 +01:00
2023-04-29 19:04:16 +08:00