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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".