Skip to main content

TipsetLike

Trait TipsetLike 

Source
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§

Source

fn epoch(&self) -> ChainEpoch

Source

fn key(&self) -> &TipsetKey

Source

fn parents(&self) -> &TipsetKey

Source

fn parent_state(&self) -> &Cid

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§