Function generic_static_cache::get_or_init
source · pub fn get_or_init<Type: 'static, Data: Copy + 'static>(
cons: impl Fn() -> Data
) -> Data
Expand description
Initialize & access the Data
-storage of type Type
.
Each Type
can hold data for multiple different instantiations of Data
.