Feature gate: #![feature(round_char_boundary)]
This is a tracking issue for str::{floor, ceil}_char_boundary
.
impl str { // Returns the character boundary at or immediately before `index` const fn floor_char_boundary(&self, index: usize) -> usize; // Returns the character boundary at or immediately after `index` const fn ceil_char_boundary(&self, index: usize) -> usize; }Steps / History
ceil_char_boundary
: Don't panic in ceil_char_boundary #112387round_char_boundary
feature functions as const #144472ceil_char_boundary
panic when indices are out of bounds? Don't panic in ceil_char_boundary #112387 updated this to return len
instead.Hocuri, fd, FliegendeWurst, finnbear, h-h-h-h and 23 moreschneiderfelipe and xorgy
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4