Trait gclient::ext::sp_runtime::codec::DecodeLength

pub trait DecodeLength {
    // Required method
    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§

fn len(self_encoded: &[u8]) -> Result<usize, Error>

Return the number of elements in self_encoded.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl<A0, B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0> DecodeLength for (A0, B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
where A0: DecodeLength,

§

fn len(self_encoded: &[u8]) -> Result<usize, Error>

§

impl<B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0> DecodeLength for (B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
where B0: DecodeLength,

§

fn len(self_encoded: &[u8]) -> Result<usize, Error>

§

impl<C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0> DecodeLength for (C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
where C0: DecodeLength,

§

fn len(self_encoded: &[u8]) -> Result<usize, Error>

§

impl<D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0> DecodeLength for (D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
where D0: DecodeLength,

§

fn len(self_encoded: &[u8]) -> Result<usize, Error>

§

impl<E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0> DecodeLength for (E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
where E0: DecodeLength,

§

fn len(self_encoded: &[u8]) -> Result<usize, Error>

§

impl<F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0> DecodeLength for (F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
where F0: DecodeLength,

§

fn len(self_encoded: &[u8]) -> Result<usize, Error>

§

impl<G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0> DecodeLength for (G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
where G0: DecodeLength,

§

fn len(self_encoded: &[u8]) -> Result<usize, Error>

§

impl<H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0> DecodeLength for (H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
where H0: DecodeLength,

§

fn len(self_encoded: &[u8]) -> Result<usize, Error>

§

impl<I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0> DecodeLength for (I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
where I0: DecodeLength,

§

fn len(self_encoded: &[u8]) -> Result<usize, Error>

§

impl<J0, K0, L0, M0, N0, O0, P0, Q0, R0> DecodeLength for (J0, K0, L0, M0, N0, O0, P0, Q0, R0)
where J0: DecodeLength,

§

fn len(self_encoded: &[u8]) -> Result<usize, Error>

§

impl<K0, L0, M0, N0, O0, P0, Q0, R0> DecodeLength for (K0, L0, M0, N0, O0, P0, Q0, R0)
where K0: DecodeLength,

§

fn len(self_encoded: &[u8]) -> Result<usize, Error>

§

impl<L0, M0, N0, O0, P0, Q0, R0> DecodeLength for (L0, M0, N0, O0, P0, Q0, R0)
where L0: DecodeLength,

§

fn len(self_encoded: &[u8]) -> Result<usize, Error>

§

impl<M0, N0, O0, P0, Q0, R0> DecodeLength for (M0, N0, O0, P0, Q0, R0)
where M0: DecodeLength,

§

fn len(self_encoded: &[u8]) -> Result<usize, Error>

§

impl<N0, O0, P0, Q0, R0> DecodeLength for (N0, O0, P0, Q0, R0)
where N0: DecodeLength,

§

fn len(self_encoded: &[u8]) -> Result<usize, Error>

§

impl<O0, P0, Q0, R0> DecodeLength for (O0, P0, Q0, R0)
where O0: DecodeLength,

§

fn len(self_encoded: &[u8]) -> Result<usize, Error>

§

impl<P0, Q0, R0> DecodeLength for (P0, Q0, R0)
where P0: DecodeLength,

§

fn len(self_encoded: &[u8]) -> Result<usize, Error>

§

impl<Q0, R0> DecodeLength for (Q0, R0)
where Q0: DecodeLength,

§

fn len(self_encoded: &[u8]) -> Result<usize, Error>

§

impl<R0> DecodeLength for (R0,)
where R0: DecodeLength,

§

fn len(self_encoded: &[u8]) -> Result<usize, Error>

Implementors§

§

impl<K, V> DecodeLength for BTreeMap<K, V>

§

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

§

impl<T> DecodeLength for BTreeSet<T>

§

impl<T> DecodeLength for BinaryHeap<T>

§

impl<T> DecodeLength for LinkedList<T>

§

impl<T> DecodeLength for VecDeque<T>

§

impl<T> DecodeLength for Vec<T>

§

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

§

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

§

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