One of the most talked topics about rust are strings. Why? Because they are complicated to use? Well at least more complicated than in other languages, but one big reason is, that there is a big lack in documentation.
Neither the rust book nor the API mention for example these details:
String (the “owned” sort of string type) is a wrapper for a heap-allocated buffer of unicode bytes.
str (the “slice” sort of string type) is a buffer of unicode bytes that may be on the stack, on the heap, or in the program memory itself.
From https://andrewbrinker.github.io/blog/2016/03/27/string-types-in-rust/
Also the chapter “Why “Owned” Strings Exist” is interesting.
The situation about ownership in rust is similar. You find better explanations and examples in the internet than in the book itself.
My question is, why these important topics don’t get more clarified in the book? There are many examples what can be done better. There is also the possibility to contact blogger whether it is possible to take over some parts of their tutorial.
Best regards,
Stefano