Trait mz_repr::TimestampManipulation
source · pub trait TimestampManipulation: Timestamp + TotalOrder + Lattice + Debug {
// Required methods
fn step_forward(&self) -> Self;
fn step_forward_by(&self, amount: &Self) -> Self;
fn step_back(&self) -> Option<Self>;
fn maximum() -> Self;
}
Required Methods§
sourcefn step_forward(&self) -> Self
fn step_forward(&self) -> Self
Advance a timestamp by the least amount possible such that
ts.less_than(ts.step_forward())
is true. Panic if unable to do so.
sourcefn step_forward_by(&self, amount: &Self) -> Self
fn step_forward_by(&self, amount: &Self) -> Self
Advance a timestamp forward by the given amount
. Panic if unable to do so.