Loading tutorials
let bindings, functions, println!), scalar types such as i32, f64, bool, and char, and how to run a program with cargo run.2 min readi32 and f64, and how to run a program with cargo. It covers how to read a single field out of a tuple with a numeric index.2 min readlet bindings, functions, and println!, and that you have seen tuple types and .0 field access. Here you will learn how to unpack a tuple into separate variables in a single statement.2 min readlet (a, b) = pair;. It also assumes you know that Option represents a value that may be missing.2 min read(i32, f64), write functions with return types, and use Result and Option at a basic level. It covers the smallest tuples: the empty tuple () and the tuple with one element.2 min read#[derive(...)] for them.1 min readlet bindings, functions, println!, scalar types such as i32 and u8, and basic borrowing with &. You should be able to run a program with cargo run.2 min readlet bindings, scalar types such as i32 and bool, and the idea that Copy types are duplicated on assignment. You also need to be able to run programs with cargo.2 min read[T; N], and understand & references. It covers the two ways to read an element, what happens when the index is wrong, and when to choose each.2 min read& references and borrowing. It covers the three ways to loop over an array and the errors that come from choosing the wrong one.2 min read&. It covers the methods you will reach for most often. Most of them come from slices, because an array automatically borrows as a slice when you call a method on it. A few, such as map, belong to the array type itself2 min read[value; N], and index them. Here we nest arrays to build grids and tables.2 min read[i32; 4], index arrays, and use & references. It builds on those to show how one function can accept many sequence types.2 min readmatch, if let, references, and the difference between an array [T; N] and a slice &[T].2 min read[T; N] is an array type, that &[T] is a slice, and how generic type parameters like T work.2 min read[T; N], indexing, and borrowing a slice with &[T].2 min readVec. It explains where their values are stored and how large they are.2 min readVec. You should be comfortable with borrowing and with running programs using cargo. Here you will pick between the four types for a given problem.2 min read