README.md

Rust: Ownership without Tears

Example code and exercises for the glibCode course Rust: Ownership without Tears (Intermediate, about 11 hours).

Ownership, borrowing and lifetimes, explained with pictures and fixed compiler errors, until the borrow checker feels like a friend.

Lessons

#LessonCode
1Hello, Cargo0
2Ownership: who frees the memory0
3Borrowing and references0
4Slices0
5Structs and enums0
6Pattern matching0
7Error handling with Result0
8Lifetimes demystified0
9Traits and generics0

Getting started

git clone https://git.glibcode.net/glibcode/rust-ownership.git
cd rust-ownership

Rust from rustup.rs. Every lesson is its own Cargo project.

Questions? Ask in the course forum or write to help@glibcode.net.

License

The code is MIT licensed (see LICENSE). The lesson texts are © glibCode.