diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-04-05 10:18:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-05 10:18:03 +0200 |
| commit | 56ffb43629bf58996c367073a0fa19e7d422df19 (patch) | |
| tree | a69dad4eb55b997c254141b858909c0b46af500c /compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp | |
| parent | 543160dd62f4d435d85bc0b4160dad4ac8659992 (diff) | |
| parent | 9d379e11a6e9d8b491ce7143600495ae101e8c69 (diff) | |
| download | rust-56ffb43629bf58996c367073a0fa19e7d422df19.tar.gz rust-56ffb43629bf58996c367073a0fa19e7d422df19.zip | |
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
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
