[][src]Trait parity_scale_codec::EncodeAppend

pub trait EncodeAppend {
    type Item: Encode;
    fn append(
        self_encoded: Vec<u8>,
        to_append: &[Self::Item]
    ) -> Result<Vec<u8>, Error>; }

Trait that allows to append items to an encoded representation without decoding all previous added items.

Associated Types

type Item: Encode

The item that will be appended.

Loading content...

Required methods

fn append(
    self_encoded: Vec<u8>,
    to_append: &[Self::Item]
) -> Result<Vec<u8>, Error>

Append to_append items to the given self_encoded representation.

Loading content...

Implementations on Foreign Types

impl<T: Encode + Decode> EncodeAppend for Vec<T>[src]

type Item = T

Loading content...

Implementors

Loading content...