pub trait BlockDateFromCardanoAbsoluteSlotNo {
// Required methods
fn from_absolute_slot_no(absolute_slot_no: u64) -> Self;
fn to_absolute_slot_no(self) -> u64;
}
Expand description
Basic converter from absolute slot number and {epoch,slot} pair
Required Methods§
sourcefn from_absolute_slot_no(absolute_slot_no: u64) -> Self
fn from_absolute_slot_no(absolute_slot_no: u64) -> Self
Converts absolute slot number to block date
sourcefn to_absolute_slot_no(self) -> u64
fn to_absolute_slot_no(self) -> u64
Converts epoch/slot representation to absolute slot number