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
.
Only available on supported targets.