pub struct Timeline { /* private fields */ }Expand description
A timeline’s step, for continuing it past its last point (the Forecast Sheet’s future rows).
Implementations§
Source§impl Timeline
impl Timeline
Sourcepub fn detect(times: &[f64], sys: DateSystem) -> Option<Timeline>
pub fn detect(times: &[f64], sys: DateSystem) -> Option<Timeline>
The step of a set of time stamps (any order, duplicates allowed): a constant numeric step
(missing points allowed) or, for whole-day dates on one day of the month, calendar months.
None without at least two distinct, finite time stamps or without a constant step.
Sourcepub fn steps_after_last(&self, t: f64) -> Option<f64>
pub fn steps_after_last(&self, t: f64) -> Option<f64>
Steps from the last time stamp to t (fractional between steps, negative before it).
Sourcepub fn after_last(&self, k: u32) -> Option<f64>
pub fn after_last(&self, k: u32) -> Option<f64>
The time stamp k steps after the last one.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Timeline
impl RefUnwindSafe for Timeline
impl Send for Timeline
impl Sync for Timeline
impl Unpin for Timeline
impl UnsafeUnpin for Timeline
impl UnwindSafe for Timeline
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more