Week 11: The Soul of Rust
&T
) to a piece of data at once.&mut T
) at a time.structs
struct
is a way to create a custom data type by grouping related values together into a single, meaningful unit.enums
enum
(or enumeration) is a way to define a custom type by listing all of its possible variants.match
keyword is Rust’s powerful control flow operator for handling enums
. It forces you to handle every possible variant, preventing bugs.structs
and enums
is a key part of designing Rust applications.structs
and enums
you just learned.IS4010: App Development with AI