Module lock

Module lock 

Source
Expand description

Abstraction for providing interior mutability over for a type.

By default, the unsync types are used. The sync flag switches to the Send + Sync variants

NOTE: RefMapped and RefMutMapped are not a type alias but rather new-type wrappers to match the behavior of parking_lot.

So Ref::map() returns a RefMapped rather than a Ref

Structsยง

Lock
An interior mutable container for a type
Ref
An immutable reference
RefMapped
An immutable reference
RefMut
A mutable reference
RefMutMapped
A mutable reference
Shared
A (cheaply) clonable pointer