mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 03:07:24 +03:00
d7d5be0c40
Stabilize `cstr_count_bytes`
Newly stable API:
```rust
impl CStr {
pub fn count_bytes(&self) -> usize;
}
```
Const stabilization has not yet been decided, so that will continue to be gated under <https://github.com/rust-lang/rust/issues/113219>.
FCP finished at https://github.com/rust-lang/rust/issues/114441#issuecomment-2016942573.
Fixes: <https://github.com/rust-lang/rust/issues/114441>