pub enum Interval {
Seconds(i32),
Days(i32),
Months(i32),
}
Expand description
A generic amount of time, in either seconds, days, or months.
This way, a user can decide how they want to treat days (which do not always have the same number of seconds) or months (which do not always have the same number of days).
Variants§
Trait Implementations§
impl StructuralPartialEq for Interval
Auto Trait Implementations§
impl Freeze for Interval
impl RefUnwindSafe for Interval
impl Send for Interval
impl Sync for Interval
impl Unpin for Interval
impl UnwindSafe for Interval
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