Macros§
- Init
Static - Creates a new uninitialized
InitStatic<T>instance with source location metadata. - Symbol
- Creates a
Symbolreference capturing the current source location for the given identifier. - init_
static - Macro to declare statically stored values with explicit initialization. Similar to
lazy_static!, but initialization is not automatic.
Structs§
- Init
Static - A wrapper around
OnceLockproviding safe initialization andDerefsupport to mimic the ergonomics oflazy_static!. - Symbol
- Represents the source location and identity of a static variable declared via
init_static!.
Enums§
- Init
Error - Error type returned by
init_static()when initialization fails.
Functions§
- init_
static - Runs initialization for all statics declared with
init_static!. - is_
initialized - Returns whether
init_static()has already been called. - set_
debug - Enables or disables debug output during initialization.