Skip to main content
Back to course
Log in
Get started
Someone wanted to learn this too, so Grasp built them a personal learning path.
Create your own
Solana development by 2026
ยท
Module 2
Rust Borrowing, Data Types, and Traits
1
Borrowing Data: References in Rust
Use references and borrowing to access data without taking ownership.
Use references and borrowing to access data without taking ownership.
2
Introducing Enums
Define enums to represent a value that can be one of multiple possible variants.
Define enums to represent a value that can be one of multiple possible variants.
3
Handling Optional Values with `Option`
Use the `Option` enum to handle the potential absence of a value.
Use the `Option` enum to handle the potential absence of a value.
4
Pattern Matching with `match` and `if let`
Apply pattern matching using `match` and `if let` to control program flow based on data structure.
Apply pattern matching using `match` and `if let` to control program flow based on data structure.
5
Robust Error Handling with `Result` and `?`
Use the `Result` enum for recoverable error handling and propagate errors with the `?` operator.
Use the `Result` enum for recoverable error handling and propagate errors with the `?` operator.
6
Dynamic Collections: Vec, String, and HashMap
Create and manage dynamic collections with `Vec`, `String`, and `HashMap`.
Create and manage dynamic collections with `Vec`, `String`, and `HashMap`.
7
Slice for Subsequences
Use slices to reference a contiguous sequence of elements in a collection.
Use slices to reference a contiguous sequence of elements in a collection.
8
Implementing Traits for Shared Behavior
Define and implement traits to specify shared behavior for different types.
Define and implement traits to specify shared behavior for different types.
Previous module
Rust Syntax, Structs, and Ownership
Next module
Solana Toolchain and Programming Model