Trait parity_scale_codec::CompactLen [−][src]
pub trait CompactLen<T> { fn compact_len(val: &T) -> usize; }
Something that can return the compact encoded length for a given value.
Required methods
fn compact_len(val: &T) -> usize
[src]
Returns the compact encoded length for the given value.
Implementors
impl CompactLen<u8> for Compact<u8>
[src]
impl CompactLen<u8> for Compact<u8>
[src]fn compact_len(val: &u8) -> usize
[src]
impl CompactLen<u16> for Compact<u16>
[src]
impl CompactLen<u16> for Compact<u16>
[src]fn compact_len(val: &u16) -> usize
[src]
impl CompactLen<u32> for Compact<u32>
[src]
impl CompactLen<u32> for Compact<u32>
[src]fn compact_len(val: &u32) -> usize
[src]
impl CompactLen<u64> for Compact<u64>
[src]
impl CompactLen<u64> for Compact<u64>
[src]fn compact_len(val: &u64) -> usize
[src]
impl CompactLen<u128> for Compact<u128>
[src]
impl CompactLen<u128> for Compact<u128>
[src]