pub enum TimeSpec {
Hours(i8),
HoursMinutes(i8, i8),
HoursMinutesSeconds(i8, i8, i8),
Zero,
}Expand description
A time definition field.
A time must have an hours component, with optional minutes and seconds components. It can also be negative with a starting ‘-’.
Hour 0 is midnight at the start of the day, and Hour 24 is midnight at the end of the day.
Variants§
Hours(i8)
A number of hours.
HoursMinutes(i8, i8)
A number of hours and minutes.
HoursMinutesSeconds(i8, i8, i8)
A number of hours, minutes, and seconds.
Zero
Zero, or midnight at the start of the day.
Implementations§
Trait Implementations§
impl Copy for TimeSpec
impl StructuralPartialEq for TimeSpec
Auto Trait Implementations§
impl Freeze for TimeSpec
impl RefUnwindSafe for TimeSpec
impl Send for TimeSpec
impl Sync for TimeSpec
impl Unpin for TimeSpec
impl UnwindSafe for TimeSpec
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