pub trait WorkingSlot {
// Required methods
fn current_slot(&self) -> Slot;
fn is_ancestor(&self, other: Slot) -> bool;
}
Expand description
Provides information about current working slot, and its ancestors
Required Methods§
sourcefn current_slot(&self) -> Slot
fn current_slot(&self) -> Slot
Returns the current slot value
sourcefn is_ancestor(&self, other: Slot) -> bool
fn is_ancestor(&self, other: Slot) -> bool
Returns true if the other
slot is an ancestor of self, false otherwise