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§
sourcefn relationship(&self, a: Slot, b: Slot) -> BlockRelation
 
fn relationship(&self, a: Slot, b: Slot) -> BlockRelation
Returns the BlockRelation of A to B
Provided Methods§
sourcefn slot_epoch(&self, _slot: Slot) -> Option<Epoch>
 
fn slot_epoch(&self, _slot: Slot) -> Option<Epoch>
Returns the epoch of the given slot