Skip to content
← All tracks

Ground Rules: Values, Types, Control Flow

Rust

Fluency with the compiler as teacher. Only `Copy` types appear — the "Rust behaves like C ints" model is installed deliberately so Track 2 can break it.

This track is written for Rust, which isn't the mode you're browsing in.

0 / 23 solved · 1 article
  1. 1. Not solved yet. let, immutability by default, and mut
  2. 2. Not solved yet. Shadowing: rebinding is not mutation
  3. 3. Not solved yet. Integer types: widths, signedness and usize
  4. 4. Not solved yet. Numeric literals: suffixes, underscores, other bases
  5. 5. Not solved yet. Integer overflow: debug panics, release wraps
  6. 6. Not solved yet. checked, wrapping, saturating, overflowing
  7. 7. Not solved yet. Integer division and remainder: the signs will surprise you
  8. 8. Not solved yet. Floating point: f32, f64, NaN, and why == is a trap
  9. 9. Not solved yet. bool and char
  10. 10. Not solved yet. Casting with as: truncation, sign reinterpretation, saturation
  11. 11. Not solved yet. From, Into, TryFrom: conversions that cannot lie
  12. 12. Not solved yet. Statements vs expressions, and the semicolon that changes the type
  13. 13. Not solved yet. Functions: parameters, return types, early return
  14. 14. Not solved yet. if is an expression
  15. 15. Not solved yet. loop, while, for, and break with a value
  16. 16. Not solved yet. Loop labels and labeled blocks
  17. 17. Not solved yet. Ranges: .., ..=, and range patterns
  18. 18. Not solved yet. Tuples and destructuring
  19. 19. Not solved yet. Arrays: the length is part of the type
  20. 20. Not solved yet. Vec<T>: the growable one
  21. 21. Not solved yet. Slices &[T]: the shape that unifies arrays and Vec
  22. 22. String vs &str, part 1: the memory model Read
  23. 23. Not solved yet. String vs &str, part 2: functions that take and return text
  24. 24. Not solved yet. Strings are UTF-8: bytes, chars, and the indexing panic

Check yourself

4 questions · one attempt each

These do not count toward finishing the track. They are here to catch the things that are easy to read past.

0 / 4

What is i32::MAX as i8?

i32::MAX as i8
Question 1 of 4