Files
rust/tests/ui/suggestions
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
..
2024-06-30 07:12:26 -04:00
2025-02-28 03:35:13 +00:00
2024-02-07 10:42:01 +08:00
2024-02-04 11:34:10 +08:00
2024-02-07 10:42:01 +08:00
2024-03-13 23:05:17 +00:00