reth::core::primitives

Trait BlockHeader

pub trait BlockHeader:
    Send
    + Sync
    + Unpin
    + Clone
    + Default
    + Debug
    + PartialEq
    + Eq
    + Encodable
    + Decodable
    + BlockHeader
    + Sealable
    + InMemorySize
    + MaybeSerde
    + MaybeArbitrary
    + MaybeSerdeBincodeCompat
    + AsRef<Self>
    + 'static {
    // Required method
    fn is_empty(&self) -> bool;
}
Expand description

Abstraction of a block header.

Required Methods§

fn is_empty(&self) -> bool

Returns whether this header corresponds to an empty block.

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§