pub fn get_mut<T: 'static + Default>() -> &'static mut T👎Deprecated since 0.4.8: Unsafe memory methods are deprecated, use the safer ic_kit::ic::with method.
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.