Matthias Krüger
56ffb43629
Rollup merge of #138381 - thaliaarchi:bstr-sliceindex, r=joshtriplett
...
Implement `SliceIndex` for `ByteStr`
Implement `Index` and `IndexMut` for `ByteStr` in terms of `SliceIndex`. Implement it for the same types that `&[u8]` supports (a superset of those supported for `&str`, which does not have `usize` and `ops::IndexRange`).
At the same time, move compare and index traits to a separate file in the `bstr` module, to give it more space to grow as more functionality is added (e.g., iterators and string-like ops). Order the items in `bstr/traits.rs` similarly to `str/traits.rs`.
cc `@joshtriplett`
`ByteStr`/`ByteString` tracking issue: https://github.com/rust-lang/rust/issues/134915
2025-04-05 10:18:03 +02:00
..
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-03-25 17:33:09 +03:00
2025-04-04 13:24:26 +11:00
2025-03-24 16:57:07 +00:00
2025-04-03 11:08:55 +03:00
2025-03-31 21:10:56 +00:00
2025-04-03 11:08:55 +03:00
2025-04-04 14:24:46 -04:00
2025-04-03 11:08:55 +03:00
2025-04-03 21:18:29 +02:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 21:18:30 +02:00
2025-04-03 21:18:30 +02:00
2025-03-26 02:25:01 +01:00
2025-04-03 11:08:55 +03:00
2025-03-30 01:32:21 +03:00
2025-03-21 22:55:00 -06:00
2025-04-03 11:08:55 +03:00
2025-04-03 18:55:53 +00:00
2025-04-03 11:08:55 +03:00
2025-04-04 13:39:50 +00:00
2025-04-03 11:13:10 +02:00
2025-04-02 09:16:34 +11:00
2025-04-01 16:07:23 +11:00
2025-04-03 11:08:55 +03:00
2025-03-25 17:33:09 +03:00
2025-04-03 11:08:55 +03:00
2025-03-24 01:02:07 +01:00
2025-03-30 01:32:21 +03:00
2025-03-25 17:33:09 +03:00
2025-04-04 05:18:48 +02:00
2025-04-03 11:08:55 +03:00
2025-03-25 17:33:09 +03:00
2025-03-25 17:33:09 +03:00
2025-04-03 11:08:55 +03:00
2025-04-05 13:18:16 +11:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 07:39:08 +02:00
2025-03-25 17:33:09 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:13:10 +02:00
2025-03-21 09:35:31 +01:00
2025-04-03 11:13:10 +02:00
2025-04-03 11:13:10 +02:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-03-21 09:35:31 +01:00
2025-03-25 17:33:09 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-03-25 17:33:09 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-04 08:02:08 +02:00
2025-04-03 15:41:38 +02:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-05 13:18:17 +11:00
2025-04-03 11:08:55 +03:00
2025-03-21 09:35:31 +01:00
2025-04-03 11:08:55 +03:00
2025-03-25 17:33:09 +03:00
2025-04-03 11:08:55 +03:00
2025-03-25 17:33:09 +03:00
2025-04-04 16:50:56 +11:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-03-25 17:33:09 +03:00
2025-03-21 09:35:31 +01:00
2025-03-29 08:10:15 +01:00
2025-03-30 19:33:15 +02:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-03-25 17:33:09 +03:00
2025-03-25 17:33:09 +03:00
2025-04-05 04:05:04 +00:00
2025-03-30 02:39:19 +00:00
2025-04-03 11:08:55 +03:00
2025-03-30 01:32:21 +03:00
2025-03-30 22:53:21 +00:00
2025-03-25 17:33:09 +03:00
2025-04-01 14:08:57 +11:00
2025-03-27 20:09:37 +08:00
2025-04-05 10:18:03 +02:00
2025-03-25 17:33:09 +03:00
2025-03-26 19:40:27 +11:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-03-27 14:11:11 +01:00
2025-03-25 17:33:09 +03:00
2025-04-03 11:08:55 +03:00
2025-04-04 23:03:57 +00:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:13:10 +02:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-03-25 17:33:09 +03:00
2025-03-22 11:41:42 +08:00
2025-03-21 09:35:31 +01:00
2025-04-03 11:08:55 +03:00
2025-03-22 15:14:49 +08:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-03-31 23:58:17 +02:00
2025-03-31 23:58:17 +02:00
2025-03-31 23:58:17 +02:00
2025-03-31 23:58:17 +02:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00