diff options
| author | Deven T. Corzine <deven@ties.org> | 2025-06-10 23:50:48 -0400 |
|---|---|---|
| committer | Deven T. Corzine <deven@ties.org> | 2025-06-11 00:27:22 -0400 |
| commit | 32cb8f1537a3c0948e01cb90c850d9f60e3139ed (patch) | |
| tree | e3a86d559f655710ae4816b8af2475e3dedb0b83 /compiler/rustc_codegen_llvm/src | |
| parent | c6a955468b025dbe3d1de3e8f3e30496d1fb7f40 (diff) | |
| download | rust-32cb8f1537a3c0948e01cb90c850d9f60e3139ed.tar.gz rust-32cb8f1537a3c0948e01cb90c850d9f60e3139ed.zip | |
Add trim_prefix and trim_suffix for slice and str.
Implements `trim_prefix` and `trim_suffix` methods for both `slice` and `str` types which remove at most one occurrence of a prefix/suffix while always returning a string/slice (rather than Option), enabling easy method chaining.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
