[][src]Trait parity_codec::DecodeLength

pub trait DecodeLength {
    fn len(self_encoded: &[u8]) -> Option<usize>;
}

Trait that allows the length of a collection to be read, without having to read and decode the entire elements.

Required methods

fn len(self_encoded: &[u8]) -> Option<usize>

Return the number of elements in self_encoded.

Loading content...

Implementors

impl<T> DecodeLength for Vec<T>[src]

Loading content...