mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-06-15 22:49:21 +02:00
b18a8c3036
To understand From-based conversion, an understanding of traits is required, which we teach in a later chapter. The From trait specifically is taught in one of the conversion exercises. So, we can safely remove it here without users missing out on learning something important. A specific source of confusion for users was a warning that the conversion is useless, which appeared when using the `string_slice` function for the expression with `.into()`. closes #2190
Strings
Rust has two string types: a string slice (&str) and an owned string (String).
We're not going to dictate when you should use which one, but we'll show you how
to identify and create them, as well as use them.