Loading tutorials
String, Vec, and &str. No ownership rules are assumed. This cha2 min read&T), moves, and how String and Vec store data on the heap. Here you learn how to lend a value out so the borrower can change it.2 min read&T and &mut T in function signatures. Here you will learn the rule the compiler checks for every reference, and how to read its errors.2 min read&T) and mutable references (&mut T) work, and the borrowing rules from the previous chapters. It also assumes you are comfortable with String, Vec, and &str.2 min read&T and &mut T, how scope and Drop work, and how to read a compiler error. It builds on the previous chapter, which covered the borrow checker.2 min readlongest<'a>, and that you know shared and mutable references. It explains why many functions need no lifetime annotations, and when the compiler still asks for them.2 min read'a, and the basic elision rules. It applies those ideas to struct fields.2 min readDrop trait from earlier chapters. It also assumes you know that the stack holds fixed-size values and the heap holds data whose size can vary.2 min readBox. Single ownership covers most programs. Sometimes, though, several parts of a program need to own the same data, and no single owner is the obvious one to free it. Rc<T> handles that case.2 min read&T or one &mut T), can use Box<T> and Rc<T>, and can read basic Rust syntax.2 min readRc, and RefCell from the earlier chapters, and that you have spawned a thread with std::thread::spawn before.2 min read