about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorDeven T. Corzine <deven@ties.org>2025-06-10 23:50:48 -0400
committerDeven T. Corzine <deven@ties.org>2025-06-11 00:27:22 -0400
commit32cb8f1537a3c0948e01cb90c850d9f60e3139ed (patch)
treee3a86d559f655710ae4816b8af2475e3dedb0b83 /compiler/rustc_codegen_llvm/src
parentc6a955468b025dbe3d1de3e8f3e30496d1fb7f40 (diff)
downloadrust-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