Module chr

Source
Expand description

Const equivalents of char functions.

The module is called chr to avoid name collisions with the char type.

Structs§

Utf8Encoded
A char encoded as a utf8 string.

Functions§

encode_utf8
Encodes c into utf8, const analog of char::encode_utf8.
from_u32
Fallible conversion from u32 to char, const equivalent of char::from_u32
from_u32_unchecked
Unsafely coerces u32 to char, const equivalent of char::from_u32_unchecked