Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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<T> ConstEncodedLen for Box<T>
where T: ConstEncodedLen,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12> ConstEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12)
where 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,

Source§

impl<TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13> ConstEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13)
where 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,

Source§

impl<TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14> ConstEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14)
where 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,

Source§

impl<TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15> ConstEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15)
where 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,

Source§

impl<TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16> ConstEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16)
where 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,

Source§

impl<TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17> ConstEncodedLen for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17)
where 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,

Implementors§