Skip to content

Glossary: Rust Beyond the Basics

Rc (reference counted)

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

A smart pointer for shared, read-only ownership on one thread. It counts the owners and drops the value when the count reaches zero.

Where the book teaches it

Related terms

RefCellsmart pointer