Function frame_support::storage::unhashed::get_or_else
source · pub fn get_or_else<T: Decode + Sized, F: FnOnce() -> T>(
key: &[u8],
default_value: F
) -> T
Expand description
Return the value of the item in storage under key
, or default_value()
if there is no
explicit entry.