Rust basics: strings, vectors, and slices
·574 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. If you learn them together, Rust’s API style becomes much easier to read.