Function generic_static_cache::init

source ·
pub fn init<Type: 'static, Data: Copy + 'static>(
    data: Data
) -> Result<(), AlreadyInitialized>
Expand description

Initialize the Data-storage of type Type. Each Type can hold data for multiple different instantiations of Data.

If called multiple times, only the first call will succeed.