Parity_scale_codec::DecodeLength - Rust

Có thể bạn quan tâm

Docs.rs
  • parity-scale-codec-1.3.7
    • parity-scale-codec 1.3.7
    • Docs.rs crate page
    • Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • github:paritytech:core-devs
    • parity-crate-owner
    • gui1117
    • Dependencies
      • arrayvec ^0.5.1 normal
      • bitvec ^0.17.4 normal
      • byte-slice-cast ^0.3.4 normal
      • generic-array ^0.13.2 normal
      • parity-scale-codec-derive ^1.2.3 normal
      • serde ^1.0.102 normal
      • criterion ^0.3.0 dev
      • parity-scale-codec-derive ^1.2.2 dev
      • quickcheck ^0.9 dev
      • serde_derive ^1.0 dev
    • Versions
    • 94.64% of the crate is documented
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

Trait DecodeLength

Required MethodslenImplementations on Foreign Types(A0, B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)(B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)(C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)(D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)(E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)(F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)(G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)(H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)(I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)(J0, K0, L0, M0, N0, O0, P0, Q0, R0)(K0, L0, M0, N0, O0, P0, Q0, R0)(L0, M0, N0, O0, P0, Q0, R0)(M0, N0, O0, P0, Q0, R0)(N0, O0, P0, Q0, R0)(O0, P0, Q0, R0)(P0, Q0, R0)(Q0, R0)(R0,)BTreeMap<K, V>BTreeSet<T>BinaryHeap<T>LinkedList<T>Vec<T>VecDeque<T>Implementors

parity_scale_codec

Pick another theme!? Change settingsTrait parity_scale_codec::DecodeLength[][src]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>[src]

Return the number of elements in self_encoded.

Loading content...

Implementations on Foreign Types

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

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

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

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

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

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

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

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

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

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

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

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

impl<A0: DecodeLength, 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)[src]

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

impl<B0: DecodeLength, 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)[src]

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

impl<C0: DecodeLength, 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)[src]

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

impl<D0: DecodeLength, 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)[src]

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

impl<E0: DecodeLength, 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)[src]

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

impl<F0: DecodeLength, 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)[src]

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

impl<G0: DecodeLength, 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)[src]

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

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

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

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

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

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

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

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

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

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

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

impl<M0: DecodeLength, N0, O0, P0, Q0, R0> DecodeLength for (M0, N0, O0, P0, Q0, R0)[src]

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

impl<N0: DecodeLength, O0, P0, Q0, R0> DecodeLength for (N0, O0, P0, Q0, R0)[src]

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

impl<O0: DecodeLength, P0, Q0, R0> DecodeLength for (O0, P0, Q0, R0)[src]

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

impl<P0: DecodeLength, Q0, R0> DecodeLength for (P0, Q0, R0)[src]

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

impl<Q0: DecodeLength, R0> DecodeLength for (Q0, R0)[src]

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

impl<R0: DecodeLength> DecodeLength for (R0,)[src]

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

Loading content...

Implementors

Loading content...

Từ khóa » H0 B0 M0