4
Strings
This chapter is dedicated entirely to strings. Strings are collections of printable and nonprintable characters. Rust strings adhere to the Unicode Standard with UTF-8 encoding. Unicode is a single codespace with code points for characters from around the world, including various languages and even emojis. Both active and inactive languages, such as hieroglyphics, are included in the standard. This provides support for internationalization, which makes it easier for your application to support users from around the world.
For example, the following is “hello” in hieroglyphics:
For your ancient Egyptian customers, this greeting is easier to provide because of Unicode.
Strings commonly appear in applications and are used in a variety ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access