Function ic_kit::ic::get_mut

source · []
pub fn get_mut<T: 'static + Default>() -> &'static mut T
Expand description

Return a mutable reference to the given data type, if the data is not present the default value of the type is constructed and stored. The changes made to the data during updates is preserved.