Struct nettu_scheduler_domain::EventInstance[][src]

pub struct EventInstance {
    pub start_ts: i64,
    pub end_ts: i64,
    pub busy: bool,
}

Occurence of a CalendarEvent

Fields

start_ts: i64end_ts: i64busy: bool

Implementations

impl EventInstance[src]

pub fn has_overlap(instance1: &Self, instance2: &Self) -> bool[src]

pub fn can_merge(instance1: &Self, instance2: &Self) -> bool[src]

pub fn merge(instance1: &Self, instance2: &Self) -> Option<Self>[src]

Merges two EventInstances into a new EventInstance if they overlap.

pub fn remove_instance(
    free_instance: &Self,
    instance: &Self
) -> SubtractInstanceResult
[src]

pub fn remove_instances(
    &self,
    intances: &CompatibleInstances,
    skip: usize
) -> CompatibleInstances
[src]

Trait Implementations

impl Clone for EventInstance[src]

impl Debug for EventInstance[src]

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

impl PartialEq<EventInstance> for EventInstance[src]

impl Serialize for EventInstance[src]

impl StructuralPartialEq for EventInstance[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>,