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-03-20 10:25:29 +00:00
2023-01-22 23:41:39 -05:00
2023-01-17 16:23:22 +01:00
2023-02-09 12:29:43 +09:00
2023-04-27 22:44:42 -07:00
2023-04-28 23:08:54 +02:00
2023-04-30 00:06:26 +08:00
2023-04-07 15:46:45 -04:00
2023-01-17 08:14:35 +01:00
2023-04-04 18:44:29 -07:00
2023-01-11 20:42:13 -05:00
2023-04-30 00:06:26 +08:00
2023-01-17 16:23:22 +01:00
2023-01-17 16:23:22 +01:00
2023-03-16 15:07:04 +01:00
2023-04-16 06:31:08 +00:00
2023-03-01 14:42:06 -08:00
2023-04-07 15:46:43 -04:00
2023-05-03 22:09:33 -07:00
2023-02-04 16:44:53 -08:00
2023-01-17 08:14:35 +01:00
2023-01-17 08:14:35 +01:00
2023-01-17 16:23:22 +01:00
2023-04-30 00:06:26 +08:00
2023-04-30 00:06:26 +08:00
2023-02-16 23:59:13 -08:00
2023-01-17 08:14:35 +01:00
2023-04-05 15:59:29 +00:00
2023-03-31 07:28:39 -04:00
2023-03-31 07:28:39 -04:00
2023-03-31 07:28:39 -04:00
2023-01-27 15:29:04 +00:00
2023-04-22 23:41:48 +02:00
2023-05-03 22:41:29 +00:00
2023-04-14 16:26:11 +00:00
2023-01-17 08:14:35 +01:00
2023-03-14 20:52:42 +01:00
2023-01-17 16:23:22 +01:00
2023-02-06 11:46:32 +01:00
2023-02-18 19:47:34 +00:00
2023-04-30 00:06:26 +08:00
2023-04-30 00:06:26 +08:00
2023-04-30 00:06:26 +08:00
2023-03-15 14:22:26 -04:00
2023-04-11 11:07:48 +10:00
2023-04-07 15:46:43 -04:00
2023-01-17 16:23:22 +01:00
2023-01-17 16:23:22 +01:00
2023-04-07 15:46:43 -04:00
2023-04-30 22:33:04 -07:00
2023-04-30 22:33:04 -07:00
2023-02-10 16:06:25 -08:00
2023-02-14 19:21:58 -05:00
2023-01-17 16:23:22 +01:00
2023-04-17 09:16:07 +02:00
2023-04-16 11:50:20 -07:00
2023-01-18 19:19:28 -08:00
2023-01-17 16:23:22 +01:00
2023-01-17 16:23:22 +01:00
2023-03-14 22:24:28 -07:00
2023-01-17 16:23:22 +01:00
2023-04-30 00:06:26 +08:00
2023-04-30 00:06:26 +08:00
2023-01-11 09:32:08 +00:00
2023-04-30 00:06:26 +08:00
2023-05-03 22:41:29 +00:00
2023-05-03 22:41:29 +00:00
2023-05-03 22:41:29 +00:00
2023-05-03 22:41:29 +00:00
2023-05-03 22:41:29 +00:00
2023-05-03 22:41:29 +00:00
2023-05-03 22:41:29 +00:00
2023-05-03 22:41:29 +00:00
2023-05-03 22:41:29 +00:00
2023-05-03 22:41:29 +00:00
2023-05-03 22:41:29 +00:00
2023-05-03 22:41:29 +00:00
2023-02-14 20:54:25 -05:00
2023-05-03 22:41:29 +00:00
2023-05-03 22:41:29 +00:00
2023-05-03 22:41:29 +00:00
2023-05-03 22:41:29 +00:00
2023-05-03 22:41:29 +00:00
2023-05-03 22:41:29 +00:00
2023-01-17 16:23:22 +01:00
2023-01-17 08:14:35 +01:00
2023-02-14 19:21:58 -05:00
2023-03-13 15:07:16 +00:00
2023-03-05 15:15:22 -08:00
2023-03-01 14:42:06 -08:00
2023-01-17 16:23:22 +01:00
2023-05-03 22:41:29 +00:00
2023-02-10 16:06:25 -08:00
2023-01-17 16:23:22 +01:00
2023-04-17 10:53:18 -04:00
2023-04-19 23:17:35 -07:00
2023-04-13 00:12:39 -07:00
2023-01-17 16:23:22 +01:00
2023-02-10 16:06:25 -08:00
2023-03-14 20:52:42 +01:00
2023-02-19 14:30:21 -05:00
2023-01-19 08:04:26 +00:00
2023-04-03 15:29:46 +02:00
2023-03-20 15:33:57 +00:00
2023-04-05 15:59:29 +00:00
2023-01-17 16:23:22 +01:00