Constant MAX_LEN_UTF16

Source
pub const MAX_LEN_UTF16: usize = char::MAX_LEN_UTF16; // 2usize
🔬This is a nightly-only experimental API. (char_max_len)
Expand description

The maximum number of two-byte units required to encode a char to UTF-16 encoding.