rust/library/core/src/str
Guillaume Gomez 26672c93d5
Rollup merge of #129276 - eduardosm:stabilize-char_indices_offset, r=Amanieu
Stabilize feature `char_indices_offset`

Stabilized API:

```rust
impl CharIndices<'_> {
    pub fn offset(&self) -> usize;
}
```

Tracking issue: https://github.com/rust-lang/rust/issues/83871

Closes https://github.com/rust-lang/rust/issues/83871

I also attempted to improved the documentation to make it more clear that it returns the offset of the character that will be returned by the next call to `next()`.
2024-08-23 12:32:15 +02:00
..
converts.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
count.rs Add blank lines after module-level //! comments. 2024-06-20 09:23:20 +10:00
error.rs remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
iter.rs Stabilize feature char_indices_offset 2024-08-19 20:31:48 +02:00
lossy.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
mod.rs Fix stability attribute of impl !Error for &str 2024-08-21 16:21:40 +02:00
pattern.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
traits.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
validations.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00