Working with Collections in Rust | A Comprehensive Guide
October 14, 2024Rust collections with code: Vec, arrays, slices, HashMap, HashSet, LinkedList, and BinaryHeap, plus conversions, Option and Result handling, and iterators.
Rust collections with code: Vec, arrays, slices, HashMap, HashSet, LinkedList, and BinaryHeap, plus conversions, Option and Result handling, and iterators.
Rust has two string types, String and &str. See how to convert between them, concatenate, slice, split, and trim, use the regex crate, and mind performance.
A beginner's start with Rust: set up Cargo and a first project, learn variables, types, functions, and control flow, then see how the borrow checker works.