pub enum Period<M = TimeFormat> {
Explicit {
start: DateTime<M>,
end: DateTime<M>,
},
Start {
start: DateTime<M>,
duration: Duration,
},
}Expand description
A period of time (RFC 5545 §3.3.9).
Variants§
Explicit
A period defined by explicit start and end datetimes.
Start
A period defined by a start datetime and a duration.
Trait Implementations§
impl<M: Copy> Copy for Period<M>
impl<M: Eq> Eq for Period<M>
impl<M> StructuralPartialEq for Period<M>
Auto Trait Implementations§
impl<M> Freeze for Period<M>where
M: Freeze,
impl<M> RefUnwindSafe for Period<M>where
M: RefUnwindSafe,
impl<M> Send for Period<M>where
M: Send,
impl<M> Sync for Period<M>where
M: Sync,
impl<M> Unpin for Period<M>where
M: Unpin,
impl<M> UnsafeUnpin for Period<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for Period<M>where
M: UnwindSafe,
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