char
One Unicode character, four bytes wide.
char holds one Unicode scalar value and is always 4 bytes.
Loading interactive…
Examples
std::mem::size_of::<char>()is 4, but in a string"a".len()is 1 and"🦀".len()is 4: text stores each character in one to four bytes.
See also