Function pallet_tenancy::child::get_or_else
pub fn get_or_else<T, F>(
child_info: &ChildInfo,
key: &[u8],
default_value: F
) -> Twhere
T: Decode,
F: FnOnce() -> T,
Expand description
Return the value of the item in storage under key
, or default_value()
if there is no
explicit entry.