Expand description

Synchronized Cell

Main principles:

  1. if you change state, and it’s fine, you reverse it on drop()
  2. if you found a problem, still undo your change, and then panic()

Structs

A Sync cell. Stores a value of type T and allows to access it behind a reference. SynCell follows Rust borrowing rules but checks them at run time as opposed to compile time.

A shared reference to SynCell data.

A mutable reference to SynCell data.