Function frame_support::storage::child::take_or
source ยท pub fn take_or<T: Codec + Sized>(
child_info: &ChildInfo,
key: &[u8],
default_value: T,
) -> T
Expand description
Return the value of the item in storage under key
, or default_value
if there is no
explicit entry. Ensure there is no explicit entry on return.