Back to Developer Roadmap

Rc

src/data/roadmaps/rust/content/[email protected]

4.0486 B
Original Source

Rc

Rc<T> (Reference Counting) enables multiple owners of the same heap-allocated data in single-threaded contexts. It tracks the number of references and automatically deallocates data when the count reaches zero. Use Rc::clone() to create additional references without deep copying data.

Visit the following resources to learn more: