pub trait TipsetLike {
// Required methods
fn epoch(&self) -> ChainEpoch;
fn key(&self) -> &TipsetKey;
fn parents(&self) -> &TipsetKey;
fn parent_state(&self) -> &Cid;
}Expand description
A trait for types that have the same properties as a Tipset.
Required Methods§
fn epoch(&self) -> ChainEpoch
fn key(&self) -> &TipsetKey
fn parents(&self) -> &TipsetKey
fn parent_state(&self) -> &Cid
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".