pub trait IntoBlockView {
    // Required methods
    fn into_view_without_reset_header(self) -> BlockView;
    fn into_view(self) -> BlockView;
    fn block_into_view_internal(
        block: Block,
        tx_hashes: Vec<Byte32>,
        tx_witness_hashes: Vec<Byte32>
    ) -> BlockView;
}
Expand description

Trait for converting types into BlockView.

Required Methods§

source

fn into_view_without_reset_header(self) -> BlockView

Converts the implementing type into a BlockView without resetting the header.

source

fn into_view(self) -> BlockView

Converts the implementing type into a BlockView.

source

fn block_into_view_internal( block: Block, tx_hashes: Vec<Byte32>, tx_witness_hashes: Vec<Byte32> ) -> BlockView

Converts a packed block and associated data into a BlockView.

Object Safety§

This trait is not object safe.

Implementors§