Skip to content
masterclass Buddy

Rust · Class

Cell

Cell<T> lets code change a value through a shared reference. It moves values in and out instead of giving references to the stored value.

Last updated

Since
1.0.0

Syntax

pub struct Cell<T: ?Sized> { /* private fields */ }

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

Subscribe
  • RefCell
  • OnceCell
  • LazyCell
  • UnsafeCell
  • Mutex
  • RwLock

Source: Cell in core::cell - Rust. Checked 2026-11-03.