pub enum TypedTime {
Seconds(Duration),
Minutes(Duration),
Hours(Duration),
Days(Duration),
None(Duration),
}
Expand description
Typed time is a representation of the time that appears in repeat time line (r=
) or in zone
offet line (z=
). Such times can be in seconds, with or without suffix unit (s
) but can also
be in other explicit units, specifically minutes (m
), hours (h
) and days (d
).
Variants§
Trait Implementations§
Source§impl Ord for TypedTime
impl Ord for TypedTime
Source§impl PartialOrd for TypedTime
impl PartialOrd for TypedTime
impl Copy for TypedTime
impl Eq for TypedTime
impl StructuralPartialEq for TypedTime
Auto Trait Implementations§
impl Freeze for TypedTime
impl RefUnwindSafe for TypedTime
impl Send for TypedTime
impl Sync for TypedTime
impl Unpin for TypedTime
impl UnwindSafe for TypedTime
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