Struct nettu_scheduler_domain::TimeSpan[][src]

pub struct TimeSpan { /* fields omitted */ }

A TimeSpan type represents a time interval (duration of time)

Implementations

impl TimeSpan[src]

pub fn new(start_ts: i64, end_ts: i64) -> Self[src]

pub fn greater_than(&self, duration: i64) -> bool[src]

Duration of this TimeSpan is greater than a given duration

pub fn as_datetime(&self, tz: &Tz) -> TimeSpanDateTime[src]

pub fn start(&self) -> i64[src]

pub fn end(&self) -> i64[src]

Trait Implementations

impl Clone for TimeSpan[src]

impl Debug for TimeSpan[src]

impl<'de> Deserialize<'de> for TimeSpan[src]

impl Serialize for TimeSpan[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,