...

/

Introduction to Strings

Introduction to Strings

This lesson will discuss strings, the two different types, and how to create them in Rust.

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 ...