#[non_exhaustive]pub enum TimeExpr {
HourMinute(i8, i8),
HourMinuteSecond(i8, i8, i8),
HourOnly(i8),
SameTime,
}Expand description
Time expression (hours:minutes or hours:minutes:seconds).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
HourMinute(i8, i8)
HourMinuteSecond(i8, i8, i8)
HourOnly(i8)
Hour-only time specification for range granularity (e.g., “today 18h”)
SameTime
“at same time” – preserve current time from now reference.
Trait Implementations§
impl Copy for TimeExpr
impl Eq for TimeExpr
impl StructuralPartialEq for TimeExpr
Auto Trait Implementations§
impl Freeze for TimeExpr
impl RefUnwindSafe for TimeExpr
impl Send for TimeExpr
impl Sync for TimeExpr
impl Unpin for TimeExpr
impl UnsafeUnpin for TimeExpr
impl UnwindSafe for TimeExpr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more