rust/library/core/src/str
bors 5fb8a39266 Auto merge of #97367 - WaffleLapkin:stabilize_checked_slice_to_str_conv, r=dtolnay
Stabilize checked slice->str conversion functions

This PR stabilizes the following APIs as `const` functions in Rust 1.63:
```rust
// core::str

pub const fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error>;

impl Utf8Error {
    pub const fn valid_up_to(&self) -> usize;
    pub const fn error_len(&self) -> Option<usize>;
}
```

Note that the `from_utf8_mut` function is not stabilized as unique references (`&mut _`) are [unstable in const context].

FCP: https://github.com/rust-lang/rust/issues/91006#issuecomment-1134593095

[unstable in const context]: https://github.com/rust-lang/rust/issues/57349
2022-06-19 05:51:42 +00:00
..
converts.rs Allow some internal instability 2022-05-26 13:00:14 +04: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 Stabilize checked slice->str conversion functions 2022-05-24 22:58:28 +04:00
iter.rs Rollup merge of #96008 - fmease:warn-on-useless-doc-hidden-on-assoc-impl-items, r=lcnr 2022-05-09 18:45:36 +02:00
lossy.rs Delete Utf8Lossy::from_str 2021-12-08 22:54:51 -08:00
mod.rs Document an edge case of str::split_once 2022-06-13 13:35:49 +03:00
pattern.rs Add char array without ref Pattern impl 2021-07-28 16:13:46 -05:00
traits.rs Add implicit call to from_str via parse in documentation 2022-05-19 22:01:43 +02:00
validations.rs Make some usize-typed masks definition agnostic to the size of usize 2022-04-15 17:04:59 +02:00