Function generic_singleton::get_or_init
source · [−]Expand description
Get a static reference to a generic singleton or initialize it if it doesn’t exist.
Panics
Initialization will panic if the init function calls get_or_init during initialization.