Files
rust/library/core/tests
Josh Triplett 2808977e05 Implement ByteStr and ByteString types
Approved ACP: https://github.com/rust-lang/libs-team/issues/502
Tracking issue: https://github.com/rust-lang/rust/issues/134915

These types represent human-readable strings that are conventionally,
but not always, UTF-8. The `Debug` impl prints non-UTF-8 bytes using
escape sequences, and the `Display` impl uses the Unicode replacement
character.

This is a minimal implementation of these types and associated trait
impls. It does not add any helper methods to other types such as `[u8]`
or `Vec<u8>`.

I've omitted a few implementations of `AsRef`, `AsMut`, `Borrow`,
`From`, and `PartialOrd`, when those would be the second implementation
for a type (counting the `T` impl) or otherwise may cause inference
failures. These impls are important, but we can attempt to add them
later in standalone commits, and run them through crater.

In addition to the `bstr` feature, I've added a `bstr_internals` feature
for APIs provided by `core` for use by `alloc` but not currently
intended for stabilization.

This API and its implementation are based *heavily* on the `bstr` crate
by Andrew Gallant (@BurntSushi).
2025-01-11 06:35:21 +02:00
..
2024-02-07 16:46:28 +01:00
2024-12-27 22:01:51 -05:00
2022-10-08 11:48:53 +00:00
2024-07-29 08:26:52 +10:00
2024-10-09 17:17:50 -04:00
2023-04-26 02:10:22 -04:00
2024-10-15 20:30:23 -07:00
2023-04-16 11:38:52 +00:00
2025-01-11 06:35:21 +02:00
2024-01-11 15:04:48 +03:00
2023-12-10 10:56:22 +08:00
2024-11-13 13:42:41 -06:00
2024-07-29 08:26:52 +10:00
2023-04-16 11:38:52 +00:00
2024-10-17 09:33:39 -04:00
2024-09-13 15:18:30 -03:00
2023-07-12 21:38:55 -04:00
2024-09-09 16:17:34 +02:00
2024-06-19 21:44:47 +01:00
2022-09-27 19:23:52 +00:00
2024-10-16 21:24:38 +01:00
2025-01-08 21:26:39 +01:00
2024-07-29 08:26:52 +10:00
2023-11-26 08:50:39 -05:00
2024-04-24 15:27:47 -07:00
2022-12-30 14:00:42 +01:00
2023-01-02 10:33:23 -08:00
2024-01-24 14:24:57 +01:00