Module lrs::share

Single-threaded interior mutability

Description

This module provides structures that allow data-modification through immutable references. None of the objects are safe to use from multiple threads.

Types

KindNameDescription
Struct Cell

A container with interior mutability.

Struct CopyCell

A container with interior mutability for Copy types.

Struct RefCell

A container with interior mutability for non-Copy types.

Struct RefCellBorrow

An immutable RefCell borrow.

Struct RefCellBorrowMut

A mutable RefCell borrow.

Enum RefCellStatus

The status of a RefCell.