pub const fn utf8_char_width(b: u8) -> usize
🔬 This is a nightly-only experimental API. (str_internals)
Expand description

Given a first byte, determines how many bytes are in this UTF-8 character.

This documentation is an old archive. Please see https://rust.docs.kernel.org instead.