Rust 101 - 6: Structs and Enums
Continuing our review of the things you need in Rust to write programs - grouping together data using structs, and allowing multiple possibilities with enums. We look at how to decide which thing you've got with the match keyword, and review a very popular enum called Option, which lets you say either you've got something, or you've got nothing. Links: * Slides: http://artificialworlds.net/presentations/rust-101/A2-advanced-intro * Exercises: https://artificialworlds.net/presentations/rust-101/exercises/A2-advanced-intro/mod.html 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 2023 Andy Balaam and the tweede golf contribut
βhttps://video.infosec.exchange/w/nWnatgdJtEu1PCSwbHjpDL