Expand description
Support for working with global variables in a single-threaded environment.
In such an environment, it is safe to access globals even if they don’t
implement Sync
, since there is only one thread that can access them. But
code still needs to be careful to avoid creating multiple mutable
references to the same global. These types provide abstractions for doing
this safely.
Macros§
- Returns a mutable reference to a value that is stored as a global
static
variable rather than exist on the stack.
Structs§
- A reference returned by
off_stack
. - A wrapper around a value that implements
Sync
even ifT
does not implementSync
.