[][src]Trait parity_codec::EncodeAppend

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

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

Associated Types

type Item: Encode + Decode

The item that will be appended.

Loading content...

Required methods

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

Append to_append items to the given self_encoded representation.

Loading content...


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

type Item = T

Loading content...