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

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

Required Methods§

Return the number of elements in self_encoded.

Implementations on Foreign Types§

Implementors§

impl<K, V, S> DecodeLength for BoundedBTreeMap<K, V, S>

impl<T, S> DecodeLength for BoundedBTreeSet<T, S>

impl<T, S> DecodeLength for BoundedVec<T, S>

impl<T, S> DecodeLength for WeakBoundedVec<T, S>