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)A time window variant.
Tuple Fields of Window
0: TimeWindowOffset(TimeOffset)A time offset variant.
Tuple Fields of Offset
0: TimeOffsetImplementations
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