ckb_gen_types::prelude

Trait PackVec

Source
pub trait PackVec<T: Entity, I: Entity>: IntoIterator<Item = I> {
    // Required method
    fn pack(self) -> T;
}
Expand description

A syntactic sugar to convert a vector of binary data into one binary data.

Required Methods§

Source

fn pack(self) -> T

Packs a vector of binary data into one binary data.

Implementors§