1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2026-06-15 22:49:21 +02:00
Files
Remo Senekowitsch b18a8c3036 strings4: remove From-based conversion
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
2026-05-24 06:23:34 +02:00
..
2024-06-22 12:05:28 +02:00
2024-06-22 12:14:04 +02:00
2025-03-07 19:17:11 -04:00

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.

Further information