Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Learning RUST with Chess
·
Module 2
Core Data Types and Control Flow
1
Data Grouping with Structs and Enums
Define `structs` to group related data and `enums` to represent a set of possible variants.
2
Implementing Methods with `impl` Blocks
Implement methods on structs and enums using `impl` blocks.
3
Exhaustive Pattern Matching with `match`
Use `match` expressions for exhaustive pattern matching on enums and other types.
4
Handling Absence with `Option<T>`
Handle the possibility of absence using the `Option<T>` enum.
5
Error Handling with `Result` and `?`
Handle recoverable errors using the `Result<T, E>` enum and the `?` operator.
Previous module
Rust Fundamentals and Ownership
Next module
Project Organization and Traits