pub trait BlockHeaderTrait:
PartialEq
+ Debug
+ Clone
+ Serialize
+ DeserializeOwned {
type Hash: Clone;
// Required methods
fn prev_hash(&self) -> Self::Hash;
fn hash(&self) -> Self::Hash;
fn height(&self) -> u64;
fn time(&self) -> Time;
}
Expand description
A block header, typically used in the context of an underlying DA blockchain.
Required Associated Types§
Required Methods§
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.