logo

Rust 101 - 32: Exercises for module D (q2)

time1 yr agoview9 views

Trying out the typestate pattern by tracking the state of a 3D printer by changing our type instead of updating a variable whenever it changes.

Links:

  • Exercises: https://artificialworlds.net/presentations/rust-101/exercises/D-trait-objects-patterns/mod.html
  • Slides: https://artificialworlds.net/presentations/rust-101/D-trait-objects-patterns

Rust 101 is a series of videos explaining how to write programs in Rust. The course materials for this series are developed by tweede golf. You can find more information at https://github.com/tweedegolf/101-rs and you can sponsor the work at https://github.com/sponsors/tweedegolf . They are released under the Creative Commons Attribution Share Alike 4.0 International license.

This series of videos is copyright 2024 Andy Balaam and the tweede golf contributors and is released under the Creative Commons Attribution Share Alike 4.0 International license.

Loading comments...