pub trait IntoStorageKeys {
type Keys: StorageKeys;
// Required methods
fn into_storage_keys(self) -> Self::Keys;
fn num_keys(&self) -> usize;
}Expand description
This can be implemented for anything that can be converted into something implementing StorageKeys.
It is implemented by default for tuples up to length 10, vectors and arrays (where the values all implement
scale_encode::EncodeAsType).
Required Associated Types§
Sourcetype Keys: StorageKeys
type Keys: StorageKeys
An implementation of StorageKeys that can be used to iterate through the keys.
Required Methods§
Sourcefn into_storage_keys(self) -> Self::Keys
fn into_storage_keys(self) -> Self::Keys
Return an implementation of StorageKeys for this type.