Module frame_support::storage::hashed
source · Expand description
Operation on runtime storage using hashed keys.
Functions§
- Check to see if
keyhas an explicit entry in storage. - Return the value of the item in storage under
key, orNoneif there is no explicit entry. - Return the value of the item in storage under
key, ordefault_valueif there is no explicit entry. - Return the value of the item in storage under
key, or the type’s default if there is no explicit entry. - Return the value of the item in storage under
key, ordefault_value()if there is no explicit entry. - Get a Vec of bytes from storage.
- Ensure
keyhas no explicit entry in storage. - Put
valuein storage underkey. - Put a raw byte slice into storage.
- Remove
keyfrom storage, returning its value if it had an explicit entry orNoneotherwise. - Return the value of the item in storage under
key, ordefault_valueif there is no explicit entry. Ensure there is no explicit entry on return. - Remove
keyfrom storage, returning its value, or, if there was no explicit entry in storage, the default for its type. - Return the value of the item in storage under
key, ordefault_value()if there is no explicit entry. Ensure there is no explicit entry on return.