Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

weak reference

A pointer to a shared value that doesn't keep the value alive.

Weak (from Rc::downgrade) doesn't raise the strong count; upgrade() returns Some(Rc) while the value lives and None after it's freed.

Loading interactive…

Examples

  • let w = Rc::downgrade(&theme); then w.upgrade() is Some(..) while theme lives and None after the last Rc is dropped.

Read the full section →