Expand description
Synchronized one-time and lazy initialization primitives that permit only non-blocking synchronized initialization operations.
Type Aliasesยง
- Lazy
- A type for lazy initialization of e.g. global static variables, which
provides the same functionality as the
lazy_static!
macro. - Once
- A synchronization primitive which can be used to run a one-time global initialization.
- Once
Cell - An interior mutability cell type which allows synchronized one-time initialization and read-only access exclusively after initialization.