Trait parity_scale_codec::ConstEncodedLen

source ·
pub trait ConstEncodedLen: MaxEncodedLen { }
Expand description

Types that have a constant encoded length. This implies MaxEncodedLen.

No derive macros is provided; instead use an empty implementation like for a marker trait.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ConstEncodedLen for bool

source§

impl ConstEncodedLen for i8

source§

impl ConstEncodedLen for i16

source§

impl ConstEncodedLen for i32

source§

impl ConstEncodedLen for i64

source§

impl ConstEncodedLen for i128

source§

impl ConstEncodedLen for u8

source§

impl ConstEncodedLen for u16

source§

impl ConstEncodedLen for u32

source§

impl ConstEncodedLen for u64

source§

impl ConstEncodedLen for u128

source§

impl ConstEncodedLen for ()

source§

impl ConstEncodedLen for Duration

source§

impl ConstEncodedLen for NonZeroI8

source§

impl ConstEncodedLen for NonZeroI16

source§

impl ConstEncodedLen for NonZeroI32

source§

impl ConstEncodedLen for NonZeroI64

source§

impl ConstEncodedLen for NonZeroI128

source§

impl ConstEncodedLen for NonZeroU8

source§

impl ConstEncodedLen for NonZeroU16

source§

impl ConstEncodedLen for NonZeroU32

source§

impl ConstEncodedLen for NonZeroU64

source§

impl ConstEncodedLen for NonZeroU128

source§

impl<T: ConstEncodedLen> ConstEncodedLen for Box<T>

source§

impl<T: ConstEncodedLen> ConstEncodedLen for PhantomData<T>

source§

impl<T: ConstEncodedLen> ConstEncodedLen for Range<T>

source§

impl<T: ConstEncodedLen> ConstEncodedLen for RangeInclusive<T>

source§

impl<T: ConstEncodedLen, const N: usize> ConstEncodedLen for [T; N]

source§

impl<TupleElement0: ConstEncodedLen> ConstEncodedLen for (TupleElement0,)

source§

impl<TupleElement0: ConstEncodedLen, TupleElement1: ConstEncodedLen> ConstEncodedLen for (TupleElement0, TupleElement1)

source§

impl<TupleElement0: ConstEncodedLen, TupleElement1: ConstEncodedLen, TupleElement2: ConstEncodedLen> ConstEncodedLen for (TupleElement0, TupleElement1, TupleElement2)

source§

impl<TupleElement0: ConstEncodedLen, TupleElement1: ConstEncodedLen, TupleElement2: ConstEncodedLen, TupleElement3: ConstEncodedLen> ConstEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3)

source§

impl<TupleElement0: ConstEncodedLen, TupleElement1: ConstEncodedLen, TupleElement2: ConstEncodedLen, TupleElement3: ConstEncodedLen, TupleElement4: ConstEncodedLen> ConstEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4)

source§

impl<TupleElement0: ConstEncodedLen, TupleElement1: ConstEncodedLen, TupleElement2: ConstEncodedLen, TupleElement3: ConstEncodedLen, TupleElement4: ConstEncodedLen, TupleElement5: ConstEncodedLen> ConstEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5)

source§

impl<TupleElement0: ConstEncodedLen, TupleElement1: ConstEncodedLen, TupleElement2: ConstEncodedLen, TupleElement3: ConstEncodedLen, TupleElement4: ConstEncodedLen, TupleElement5: ConstEncodedLen, TupleElement6: ConstEncodedLen> ConstEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6)

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

Implementors§