Enum vrp_core::models::common::TimeSpan [−][src]
pub enum TimeSpan {
Window(TimeWindow),
Offset(TimeOffset),
}Expand description
A enum for various time definitions.
Variants
Window(TimeWindow)
Tuple Fields
0: TimeWindowA time window variant.
Offset(TimeOffset)
Tuple Fields
0: TimeOffsetA time offset variant.
Implementations
Converts given time span into time window.
Checks that this time span intersects with given time windows.
If time span is time window, then return it. Otherwise, return None.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TimeSpan
impl UnwindSafe for TimeSpan
Blanket Implementations
Mutably borrows from an owned value. Read more