Skip to main content

ForkGraph

Trait ForkGraph 

Source
pub trait ForkGraph {
    // Required method
    fn relationship(&self, a: Slot, b: Slot) -> BlockRelation;

    // Provided method
    fn slot_epoch(&self, _slot: Slot) -> Option<Epoch> { ... }
}
Expand description

Maps relationship between two slots.

Required Methods§

Source

fn relationship(&self, a: Slot, b: Slot) -> BlockRelation

Returns the BlockRelation of A to B

Provided Methods§

Source

fn slot_epoch(&self, _slot: Slot) -> Option<Epoch>

Returns the epoch of the given slot

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§