pub fn is_last_slot_of_an_epoch(slot: Slot, slots_per_epoch: u32) -> bool
Checks whether slot is the last slot of its epoch given slots_per_epoch
slot
slots_per_epoch