Skip to content
masterclass Buddy

Rust · Concept

Smart pointers

Rust smart pointers act like pointers but add ownership, metadata, or behavior. Unlike references, they often own the data they point to and can manage cleanup.

Last updated

Syntax

trait Deref;
trait Drop;

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Box
  • Rc
  • Deref
  • Drop

Source: Smart Pointers - The Rust Programming Language. Checked 2026-11-03.