RustConf 2017 Tutorial Exercises

FYI: This page is at http://rust-tutorials.com/RustConf17/.

Beginner Tutorial

Ownership

Slides.

Hello World: Time: 3 minutes

Ownership: Extra credit: Can you do it without copying any data? Time: 10 minutes



Shared borrows

Slides.

Shared borrows: Time: 10 minutes



Mutable borrows

Slides.

Mutable borrows: Hint: Getting the syntax just right can be a bit tricky if you've never done any Rust before. If you need a hint, click here. Time: 10 minutes



Structs and such

Slides.

Intermediate Tutorial

Traits

Slides.

Intro to threading

Slides.

Threads Extra credit #1: use channels instead Extra credit #2: or, instead of channels, use a mutex to compute the best price in the parallel threads themselves Time: 10 minutes



Advanced tutorial

Slides.