https://github.com/ybda/rust_refcell_tutorial
Tutorial on RefCell in Rust.
https://github.com/ybda/rust_refcell_tutorial
refcell rust tutorial
Last synced: about 1 year ago
JSON representation
Tutorial on RefCell in Rust.
- Host: GitHub
- URL: https://github.com/ybda/rust_refcell_tutorial
- Owner: ybda
- License: gpl-3.0
- Created: 2024-01-27T06:04:27.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-27T06:20:10.000Z (about 2 years ago)
- Last Synced: 2025-01-17T10:44:46.206Z (about 1 year ago)
- Topics: refcell, rust, tutorial
- Language: Rust
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This code shows why RefCell is even a thing.
Example was taken from this awesome video: [Rust Interior Mutability - Sneaking By The Borrow Checker by Code to the Moon](https://youtu.be/HwupNf9iCJk?si=Y6OB9pfuDtM_pZ3o)
Highly recommended video on RefCell: [Smart Pointers in Rust - Interior Mutability by Let's Get Rusty](https://youtu.be/77aRH6YBKyY?si=3aWBufz5JUDB_r2Z)
[Rust Lang Book - Interior Mutability](https://doc.rust-lang.org/book/ch15-05-interior-mutability.html)