Files
rust/library/core/src
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 07:20:26 +00:00
2023-05-03 22:09:33 -07:00
2023-05-03 22:09:33 -07:00
2022-10-29 09:23:12 +02:00
2023-04-28 08:47:55 -07:00
2023-04-16 06:49:27 +00:00
2023-04-28 08:47:55 -07:00
2023-04-16 07:20:26 +00:00
2023-04-26 02:10:22 -04:00
2023-04-22 17:22:03 -07:00
2023-04-12 19:27:18 +02:00
2023-05-03 22:09:33 -07:00
2023-05-03 22:09:33 -07:00
2023-04-28 08:47:55 -07:00
2023-04-16 06:49:27 +00:00
2023-03-21 09:59:47 +01:00
2023-04-16 06:49:27 +00:00
2022-11-20 10:28:14 +01:00
2022-05-22 07:18:32 -03:00
2023-04-16 07:20:26 +00:00
2023-04-16 06:49:27 +00:00
2023-04-28 08:47:55 -07:00
2023-04-16 07:20:26 +00:00
2023-04-16 06:49:27 +00:00
2022-11-04 20:06:18 -07:00
2023-03-15 08:55:22 -04:00
2023-04-30 15:40:54 +02:00
2023-04-16 06:49:27 +00:00
2023-04-28 08:47:55 -07:00
2023-03-16 18:03:23 +01:00
2023-04-28 08:47:55 -07:00
2023-05-02 14:37:40 +00:00