Trait ckb_types::prelude::PackVec[][src]

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

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

Required methods

fn pack(self) -> T[src]

Packs a vector of binary data into one binary data.

Implementors

impl<T> PackVec<Byte32Vec, Byte32> for T where
    T: IntoIterator<Item = Byte32>, 
[src]

fn pack(self) -> Byte32Vec[src]

impl<T> PackVec<BytesVec, Bytes> for T where
    T: IntoIterator<Item = Bytes>, 
[src]

fn pack(self) -> BytesVec[src]

impl<T> PackVec<CellDepVec, CellDep> for T where
    T: IntoIterator<Item = CellDep>, 
[src]

fn pack(self) -> CellDepVec[src]

impl<T> PackVec<CellInputVec, CellInput> for T where
    T: IntoIterator<Item = CellInput>, 
[src]

impl<T> PackVec<CellOutputVec, CellOutput> for T where
    T: IntoIterator<Item = CellOutput>, 
[src]

impl<T> PackVec<HeaderVec, Header> for T where
    T: IntoIterator<Item = Header>, 
[src]

fn pack(self) -> HeaderVec[src]

impl<T> PackVec<IndexTransactionVec, IndexTransaction> for T where
    T: IntoIterator<Item = IndexTransaction>, 
[src]

impl<T> PackVec<OutPointVec, OutPoint> for T where
    T: IntoIterator<Item = OutPoint>, 
[src]

impl<T> PackVec<ProposalShortIdVec, ProposalShortId> for T where
    T: IntoIterator<Item = ProposalShortId>, 
[src]

impl<T> PackVec<RelayTransactionVec, RelayTransaction> for T where
    T: IntoIterator<Item = RelayTransaction>, 
[src]

impl<T> PackVec<TransactionVec, Transaction> for T where
    T: IntoIterator<Item = Transaction>, 
[src]

impl<T> PackVec<UncleBlockVec, UncleBlock> for T where
    T: IntoIterator<Item = UncleBlock>, 
[src]