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.
Rust Web Apps with Cot.rs
·
Module 1
Practical Ownership, Borrowing, and Lifetimes
1
Ownership Transfer in Functions
Write functions that transfer ownership of heap-allocated values and explain why the original binding becomes invalid.
Refactoring: Eliminate Unnecessary Cloning with References
Refactor a small program to eliminate unnecessary cloning by using references.
3
Resolving Borrow Checker Errors: Simultaneous Mutable and Immutable References
Fix common borrow checker errors involving simultaneous mutable and immutable references.
4
String vs. &str in Function Signatures
Choose between String and &str in function signatures based on ownership requirements.
5
Annotating Lifetime Parameters for Reference-Based Functions
Annotate lifetime parameters on functions that accept and return references.
6
Structs with References and Lifetimes
Implement a struct that holds references with appropriate lifetime annotations.
Next module isn't ready yet,
Back to course
Previous module
Next module