rust/library/core/src/str
bors b435960c4c Auto merge of #95644 - WaffleLapkin:str_split_as_str_refactor_take2, r=Amanieu
`Split*::as_str` refactor

I've made this patch almost a year ago, so the rename and the behavior change are in one commit, sorry 😅

This fixes #84974, as it's required to make other changes work.

This PR
- Renames `as_str` method of string `Split*` iterators to `remainder` (it seems like the `as_str` name was confusing to users)
- Makes `remainder` return `Option<&str>`, to distinguish between "the iterator is exhausted" and "the tail is empty", this was [required on the tracking issue](https://github.com/rust-lang/rust/issues/77998#issuecomment-832696619)

r? `@m-ou-se`
2023-01-03 11:06:08 +00:00
..
converts.rs type annotate &str when stack allocating a string 2022-11-21 10:38:04 +01:00
count.rs Make some usize-typed masks definition agnostic to the size of usize 2022-04-15 17:04:59 +02:00
error.rs remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
iter.rs Replace Split*::as_str with remainder 2022-12-16 13:04:22 +00:00
lossy.rs Expose Utf8Lossy as Utf8Chunks 2022-08-20 12:49:20 -04:00
mod.rs Replace libstd, libcore, liballoc in line comments. 2022-12-30 14:00:42 +01:00
pattern.rs fix dupe word typos 2022-12-05 16:42:36 +08:00
traits.rs Improve FromStr example 2022-10-02 11:32:56 +02:00
validations.rs Replace most uses of pointer::offset with add and sub 2022-08-21 02:21:41 +04:00