Skip to main content

floor_char_boundary

Function floor_char_boundary 

pub fn floor_char_boundary(s: &str, index: usize) -> usize
👎Deprecated since 0.8.4:

use str::floor_char_boundary instead

Expand description

Returns the largest UTF-8 character boundary at or before index.

This compatibility wrapper preserves the previously exported helper while directing new callers to the standard-library implementation.