Introduction to Strings
Explore the concept of strings in Rust, including the difference between string literals and String objects. Learn how to create, manipulate, and measure strings using built-in methods to build foundational Rust string handling skills.
What are Strings?
Strings are a sequence of Unicode characters. In Rust, a String is not null-terminated unlike strings in other programming languages. They can contain null characters.
Note: Have a look at the unicode characters
Types of Strings
Strings are of two types: &str and String ...