0/7 уроков (0%)
– из 7
Rust - RefCell
YouTube·Rust
Explore the concept of interior mutability in Rust through a 20-minute video tutorial focusing on RefCell. Learn how to mutate data even with immutable references, circumventing Rust's borrowing rules at runtime. Discover the Interior Mutability Pattern and its implementation using RefCell. Dive into practical use cases, such as creating mock objects, and understand how RefCell keeps track of borrows during program execution. Examine the combination of Rc and RefCell for managing multiple owners of mutable data. Gain insights into unsafe Rust, RefCell's borrow_mut method, and related concepts like Mutex for thread-safe data access.