pub fn ceil_to_boundary(time: i64, anchor: i64, interval: i64) -> Result<i64>Expand description
Ceils time to the next anchor + k * interval boundary.
Fallible: if the next boundary does not fit in i64, an explicit error is
returned instead of clamping to a non-phase value such as i64::MAX.