Closed
Description
Feature gate: #![feature(const_is_char_boundary)]
This is a tracking issue for using str::is_char_boundary
in const
, which allows checking that index
-th byte is the first byte in a UTF-8 code point sequence or the end of the string during const-eval.
Public API
// core::str
impl str {
pub const fn is_char_boundary(&self, index: usize) -> bool;
}
Steps / History
- Implementation: Mark
str::is_char_boundary
andstr::split_at*
unstablyconst
. #131520 - Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.