Skip to content

Glossary: Software Design Patterns in Rust

Rc<RefCell<..>>

Also written: Rc, RefCell, Rc<RefCell<T>>

A pair of standard types for sharing changeable data: `Rc` gives several owners, and `RefCell` checks borrowing at run time instead of compile time. Overuse turns borrow errors into panics.

Where the book teaches it

Related terms

ObserverOwnership