reth_db::static_file

Trait ColumnSelectorTwo

Source
pub trait ColumnSelectorTwo {
    type FIRST: Decompress;
    type SECOND: Decompress;

    const MASK: usize;
}
Expand description

Trait for specifying a mask to select two column values.

Required Associated Constants§

Source

const MASK: usize

Mask to obtain desired values, should correspond to the order of columns in a static_file.

Required Associated Types§

Source

type FIRST: Decompress

First desired column value

Source

type SECOND: Decompress

Second desired column value

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§

Source§

impl ColumnSelectorTwo for HeaderMask<<HeaderTerminalDifficulties as Table>::Value, BlockHash>

Source§

const MASK: usize = 6usize

Source§

type FIRST = <HeaderTerminalDifficulties as Table>::Value

Source§

type SECOND = FixedBytes<32>

Source§

impl ColumnSelectorTwo for HeaderMask<Header, BlockHash>

Source§

const MASK: usize = 5usize

Source§

type FIRST = Header

Source§

type SECOND = FixedBytes<32>