ckb_types::prelude

Trait PackVec

Source
pub trait PackVec<T, I>: IntoIterator<Item = I>
where T: Entity, I: Entity,
{ // 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§