Smart Pointers

Programming Languages · Rust Advanced · 20 min

Use Box for recursive types, Rc for shared ownership, RefCell for changing shared data and Drop to run cleanup code.

This lesson is part of TuringPath Pro. See plans.

More in Rust Advanced

Previous: Iterators and Closures