to_string() method's availability to types that implement the Display trait. When to use the to_string() and when we can't, against String::from().
relationship between to_string() and as_str().
Strings being a collection of bytes as reason it can't be indexed into.
🦀
DAY 131/365 OF SCRIBBLING RUST
🦀
Focus was on:
vectors, why they are necessary as a collection.
the proper way to access vectors, while handling possible range errors.
proper way to reference vec index.
that vector indexes can't be moved.
🦀
Why shitting on other technologies? Lots of people learn C , especially in 2026. You like Rust and Zig? Good for you dude. Use it to build your software and show it. The more people see posts like this, the less they want to learn Rust or Zig.