ckb_types::prelude

Trait IntoBlockView

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§