Function frame_support::storage::hashed::take_or_default[][src]

pub fn take_or_default<T, HashFn, R>(hash: &HashFn, key: &[u8]) -> T where
    T: Decode + Sized + Default,
    HashFn: Fn(&[u8]) -> R,
    R: AsRef<[u8]>, 
Expand description

Remove key from storage, returning its value, or, if there was no explicit entry in storage, the default for its type.