pub unsafe trait Singleton { }
Expand description

A type which guarantees that all simultaneous values share the same state.

Safety

Any two simultaneous instances of this type must be interchangeable and share the same state. A Singleton type might fulfill this obligation by referencing shared state, referencing a Unique, or requiring the precondition to be checked manually.

Implementations on Foreign Types

Implementors