pub trait KeyGeneratorMaxEncodedLen: KeyGenerator {
    // Required method
    fn key_max_encoded_len() -> usize;
}
Expand description

The maximum length used by the key in storage.

Required Methods§

Implementations on Foreign Types§

source§

impl<TupleElement0: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement1: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement2: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement3: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement4: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement5: KeyGeneratorInner + KeyGeneratorMaxEncodedLen> KeyGeneratorMaxEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5)

source§

impl<TupleElement0: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement1: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement2: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement3: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement4: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement5: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement6: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement7: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement8: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement9: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement10: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement11: KeyGeneratorInner + KeyGeneratorMaxEncodedLen> KeyGeneratorMaxEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11)

source§

impl<TupleElement0: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement1: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement2: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement3: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement4: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement5: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement6: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement7: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement8: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement9: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement10: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement11: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement12: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement13: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement14: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement15: KeyGeneratorInner + KeyGeneratorMaxEncodedLen> KeyGeneratorMaxEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15)

source§

impl<TupleElement0: KeyGeneratorInner + KeyGeneratorMaxEncodedLen> KeyGeneratorMaxEncodedLen for (TupleElement0,)

source§

impl<TupleElement0: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement1: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement2: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement3: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement4: KeyGeneratorInner + KeyGeneratorMaxEncodedLen> KeyGeneratorMaxEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4)

source§

impl<TupleElement0: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement1: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement2: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement3: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement4: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement5: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement6: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement7: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement8: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement9: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement10: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement11: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement12: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement13: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement14: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement15: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement16: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement17: KeyGeneratorInner + KeyGeneratorMaxEncodedLen> KeyGeneratorMaxEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17)

source§

impl<TupleElement0: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement1: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement2: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement3: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement4: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement5: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement6: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement7: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement8: KeyGeneratorInner + KeyGeneratorMaxEncodedLen> KeyGeneratorMaxEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8)

source§

impl<TupleElement0: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement1: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement2: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement3: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement4: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement5: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement6: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement7: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement8: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement9: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement10: KeyGeneratorInner + KeyGeneratorMaxEncodedLen> KeyGeneratorMaxEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10)

source§

impl<TupleElement0: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement1: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement2: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement3: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement4: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement5: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement6: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement7: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement8: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement9: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement10: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement11: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement12: KeyGeneratorInner + KeyGeneratorMaxEncodedLen> KeyGeneratorMaxEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12)

source§

impl<TupleElement0: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement1: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement2: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement3: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement4: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement5: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement6: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement7: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement8: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement9: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement10: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement11: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement12: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement13: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement14: KeyGeneratorInner + KeyGeneratorMaxEncodedLen> KeyGeneratorMaxEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14)

source§

impl<TupleElement0: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement1: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement2: KeyGeneratorInner + KeyGeneratorMaxEncodedLen> KeyGeneratorMaxEncodedLen for (TupleElement0, TupleElement1, TupleElement2)

source§

impl<TupleElement0: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement1: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement2: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement3: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement4: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement5: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement6: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement7: KeyGeneratorInner + KeyGeneratorMaxEncodedLen> KeyGeneratorMaxEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7)

source§

impl<TupleElement0: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement1: KeyGeneratorInner + KeyGeneratorMaxEncodedLen> KeyGeneratorMaxEncodedLen for (TupleElement0, TupleElement1)

source§

impl<TupleElement0: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement1: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement2: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement3: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement4: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement5: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement6: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement7: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement8: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement9: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement10: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement11: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement12: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement13: KeyGeneratorInner + KeyGeneratorMaxEncodedLen> KeyGeneratorMaxEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13)

source§

impl<TupleElement0: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement1: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement2: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement3: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement4: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement5: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement6: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement7: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement8: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement9: KeyGeneratorInner + KeyGeneratorMaxEncodedLen> KeyGeneratorMaxEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9)

source§

impl<TupleElement0: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement1: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement2: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement3: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement4: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement5: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement6: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement7: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement8: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement9: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement10: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement11: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement12: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement13: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement14: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement15: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement16: KeyGeneratorInner + KeyGeneratorMaxEncodedLen> KeyGeneratorMaxEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16)

source§

impl<TupleElement0: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement1: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement2: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement3: KeyGeneratorInner + KeyGeneratorMaxEncodedLen> KeyGeneratorMaxEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3)

source§

impl<TupleElement0: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement1: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement2: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement3: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement4: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement5: KeyGeneratorInner + KeyGeneratorMaxEncodedLen, TupleElement6: KeyGeneratorInner + KeyGeneratorMaxEncodedLen> KeyGeneratorMaxEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6)

Implementors§

source§

impl<H: StorageHasher, K: FullCodec + MaxEncodedLen + StaticTypeInfo> KeyGeneratorMaxEncodedLen for Key<H, K>