Trait HeaderExt
pub trait HeaderExt: BlockHeader {
// Provided method
fn parent_num_hash(&self) -> NumHash { ... }
}
Expand description
Extension trait for [BlockHeader
] adding useful helper methods.
Provided Methods§
fn parent_num_hash(&self) -> NumHash
fn parent_num_hash(&self) -> NumHash
TODO: remove once https://github.com/alloy-rs/alloy/pull/1687 is released
Returns the parent block’s number and hash
Note: for the genesis block the parent number is 0 and the parent hash is the zero hash.
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.