pub trait IterableStorageDoubleMapExtended<K1: FullCodec, K2: FullCodec, V: FullCodec>: StorageDoubleMap<K1, K2, V> {
    type PrefixIterator: Iterator<Item = (K2, V)>;
    type Iterator: Iterator<Item = (K1, K2, V)>;

    fn iter_prefix(
        k1: impl EncodeLike<K1>,
        max_iterations: Option<u32>,
        start_key: Option<Vec<u8>>
    ) -> Self::PrefixIterator; fn drain_prefix(
        k1: impl EncodeLike<K1>,
        max_iterations: Option<u32>,
        start_key: Option<Vec<u8>>
    ) -> Self::PrefixIterator; fn iter(
        max_iterations: Option<u32>,
        start_key: Option<Vec<u8>>
    ) -> Self::Iterator; fn drain(
        max_iterations: Option<u32>,
        start_key: Option<Vec<u8>>
    ) -> Self::Iterator; }
👎Deprecated since 0.4.1: iterator module’s functionality is now available in substrate’s frame-support
Expand description

A strongly-typed map in storage whose keys and values can be iterated over.

Required Associated Types§

👎Deprecated since 0.4.1: iterator module’s functionality is now available in substrate’s frame-support

The type that iterates over all (key2, value).

👎Deprecated since 0.4.1: iterator module’s functionality is now available in substrate’s frame-support

The type that iterates over all (key1, key2, value).

Required Methods§

👎Deprecated since 0.4.1: iterator module’s functionality is now available in substrate’s frame-support

Enumerate all elements in the map with first key k1 in no particular order. If you add or remove values whose first key is k1 to the map while doing this, you’ll get undefined results.

👎Deprecated since 0.4.1: iterator module’s functionality is now available in substrate’s frame-support

Remove all elements from the map with first key k1 and iterate through them in no particular order. If you add elements with first key k1 to the map while doing this, you’ll get undefined results.

👎Deprecated since 0.4.1: iterator module’s functionality is now available in substrate’s frame-support

Enumerate all elements in the map in no particular order. If you add or remove values to the map while doing this, you’ll get undefined results.

👎Deprecated since 0.4.1: iterator module’s functionality is now available in substrate’s frame-support

Remove all elements from the map and iterate through them in no particular order. If you add elements to the map while doing this, you’ll get undefined results.

Implementors§