Re:Effective Rust
by duped on Thursday June 15, 2023 @01:29PM
(#36343881)
You use `Rc` when a value can have more than one owner. You use `RefCell` when you need multiple mutable references to a value in scope (aka interior mutability - there are more than one mutable references held, but the borrow checker can't prove that they don't overlap at compile time).
[ Parent
| on HN ]
There are no comments on this comment yet.