pub struct RegularTimePoint<'a>(pub &'a Object);Expand description
Time point for a schedule where the time between the consecutive points is constant.
Tuple Fields§
§0: &'a ObjectImplementations§
Source§impl<'a> RegularTimePoint<'a>
impl<'a> RegularTimePoint<'a>
Sourcepub fn interval_schedule(
&self,
) -> Option<TypedRef<RegularIntervalSchedule<'static>>>
pub fn interval_schedule( &self, ) -> Option<TypedRef<RegularIntervalSchedule<'static>>>
Regular interval schedule containing this time point.
Sourcepub fn interval_schedule_in<'d>(
&self,
dataset: &'d Dataset,
) -> Option<RegularIntervalSchedule<'d>>
pub fn interval_schedule_in<'d>( &self, dataset: &'d Dataset, ) -> Option<RegularIntervalSchedule<'d>>
Resolve IntervalSchedule through dataset.
Sourcepub fn sequence_number(&self) -> Option<i64>
pub fn sequence_number(&self) -> Option<i64>
The position of the regular time point in the sequence. Note that time points don’t have to be sequential, i.e. time points may be omitted. The actual time for a RegularTimePoint is computed by multiplying the associated regular interval schedule’s time step with the regular time point sequence number and adding the associated schedules start time. To specify values for the start time, use sequence number 0. The sequence number cannot be negative.
Trait Implementations§
Source§impl<'a> Clone for RegularTimePoint<'a>
impl<'a> Clone for RegularTimePoint<'a>
impl<'a> Copy for RegularTimePoint<'a>
Source§impl<'a> Debug for RegularTimePoint<'a>
impl<'a> Debug for RegularTimePoint<'a>
Source§impl<'a> TypedView<'a> for RegularTimePoint<'a>
impl<'a> TypedView<'a> for RegularTimePoint<'a>
Source§fn from_object(o: &'a Object) -> Self
fn from_object(o: &'a Object) -> Self
Wrap an object without checking its class.
Auto Trait Implementations§
impl<'a> Forget for RegularTimePoint<'a>
impl<'a> Freeze for RegularTimePoint<'a>
impl<'a> Move for RegularTimePoint<'a>
impl<'a> RefUnwindSafe for RegularTimePoint<'a>
impl<'a> Send for RegularTimePoint<'a>
impl<'a> Sync for RegularTimePoint<'a>
impl<'a> Unpin for RegularTimePoint<'a>
impl<'a> UnsafeUnpin for RegularTimePoint<'a>where
&'a Object: UnsafeUnpin,
impl<'a> UnwindSafe for RegularTimePoint<'a>where
&'a Object: UnwindSafe,
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