[][src]Trait parity_scale_codec::DecodeLength

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

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]) -> Result<usize, Error>

Return the number of elements in self_encoded.

Loading content...

Implementations on Foreign Types

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

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

impl<K, V> DecodeLength for BTreeMap<K, V>[src]

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

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

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

Loading content...

Implementors

Loading content...