mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 04:37:57 +00:00
docs: Rephrase EnumerableStorageMap comment in Rustdocs (#2647)
This commit is contained in:
committed by
Bastian Köcher
parent
3527f08479
commit
1ce221f0d8
@@ -332,8 +332,8 @@ impl<K: Codec, V: Codec, U> StorageMap<K, V> for U where U: hashed::generator::S
|
||||
|
||||
/// A storage map that can be enumerated.
|
||||
///
|
||||
/// Note that type is primarily useful for off-chain computations.
|
||||
/// Runtime implementors should avoid enumerating storage entries.
|
||||
/// Primarily useful for off-chain computations.
|
||||
/// Runtime implementors should avoid enumerating storage entries on-chain.
|
||||
pub trait EnumerableStorageMap<K: Codec, V: Codec>: StorageMap<K, V> {
|
||||
/// Return current head element.
|
||||
fn head() -> Option<K>;
|
||||
|
||||
Reference in New Issue
Block a user