pub trait EpochExt {
// Required methods
fn inc_epoch(&mut self);
fn dec_epoch(&mut self);
fn next_epoch(self) -> u64;
fn prev_epoch(self) -> u64;
}Expand description
There are numerous operations in our system’s unit tests that involve incrementing or decrementing the epoch. These extensions for u64 type are specifically used within the unit tests.
Required Methods§
fn inc_epoch(&mut self)
fn dec_epoch(&mut self)
fn next_epoch(self) -> u64
fn prev_epoch(self) -> u64
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".