Module cell

Source
Expand description

A variant of core::cell::UnsafeCell specialized for use in implementations of synchronization primitives.

When the cfg(loom) flag is enabled, the UnsafeCell and Cell types in this module are re-exports of loom’s checked UnsafeCell and [checked Cell][loom-cell] types. When Loom is not enabled, UnsafeCell is a wrapper around core::cell::UnsafeCell that implements the loom::cell::UnsafeCell interface, and Cell is a re-export of core::cell::Cell.

Structs§

CellNon-loom
A mutable memory location.
ConstPtrNon-loom
An immutable raw pointer to an UnsafeCell that may be checked when Loom model checking is enabled.
MutPtrNon-loom
A mutable raw pointer to an UnsafeCell that may be checked when Loom model checking is enabled.
UnsafeCellNon-loom
A variant of core::cell::UnsafeCell that may be checked when Loom model checking is enabled.