Skip to main content

RegularTimePoint

Struct RegularTimePoint 

Source
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 Object

Implementations§

Source§

impl<'a> RegularTimePoint<'a>

Source

pub fn mrid(&self) -> &'a Mrid

The object’s master resource identifier.

Source

pub fn interval_schedule( &self, ) -> Option<TypedRef<RegularIntervalSchedule<'static>>>

Regular interval schedule containing this time point.

Source

pub fn interval_schedule_in<'d>( &self, dataset: &'d Dataset, ) -> Option<RegularIntervalSchedule<'d>>

Resolve IntervalSchedule through dataset.

Source

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.

Source

pub fn value1(&self) -> Option<f64>

The first value at the time. The meaning of the value is defined by the derived type of the associated schedule.

Source

pub fn value2(&self) -> Option<f64>

The second value at the time. The meaning of the value is defined by the derived type of the associated schedule.

Trait Implementations§

Source§

impl<'a> Clone for RegularTimePoint<'a>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for RegularTimePoint<'a>

Source§

impl<'a> Debug for RegularTimePoint<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> TypedView<'a> for RegularTimePoint<'a>

Source§

const CLASS: ClassId = classes::RegularTimePoint

The class this view represents.
Source§

fn from_object(o: &'a Object) -> Self

Wrap an object without checking its class.
Source§

fn object(&self) -> &'a Object

The underlying object.
Source§

fn try_from_object(schema: &Schema, object: &'a Object) -> Option<Self>

Wrap an object only if its class matches, including subclasses.
Source§

fn mrid(&self) -> &'a Mrid

The object’s master resource identifier.

Auto Trait Implementations§

§

impl<'a> Forget for RegularTimePoint<'a>

§

impl<'a> Freeze for RegularTimePoint<'a>
where &'a Object: Freeze,

§

impl<'a> Move for RegularTimePoint<'a>

§

impl<'a> RefUnwindSafe for RegularTimePoint<'a>

§

impl<'a> Send for RegularTimePoint<'a>
where &'a Object: Send,

§

impl<'a> Sync for RegularTimePoint<'a>
where BoxRaw<str>: Sync, RawVecInner: Sync, BoxRaw<(f64, Box<str>)>: Sync, BoxRaw<Compound>: Sync,

§

impl<'a> Unpin for RegularTimePoint<'a>
where &'a Object: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.