decode_storage_value_with_info

Function decode_storage_value_with_info 

Source
pub fn decode_storage_value_with_info<'scale, 'resolver, V>(
    cursor: &mut &'scale [u8],
    storage_info: &StorageInfo<'_, <V::TypeResolver as TypeResolver>::TypeId>,
    type_resolver: &'resolver V::TypeResolver,
    visitor: V,
) -> Result<V::Value<'scale, 'resolver>, StorageValueDecodeError<<V::TypeResolver as TypeResolver>::TypeId>>
where V: Visitor, V::Error: Debug,
Expand description

Decode a storage value.

Unlike decode_storage_value, which obtains the storage info internally given the pallet and storage entry names, this function takes the storage info as an argument. This is useful if you already have the storage info available, for example if you are decoding multiple keys for the same storage entry.