Rust basics: strings, vectors, and slices
·569 words·3 mins
Many beginner Rust questions are really collection questions in disguise. Most of them come down to four types: String, &str, Vec<T>, and slices like &[T]. These types are connected. Learn them together and Rust APIs become easier to read.