Enum time::util::DateAdjustment
source · pub(crate) enum DateAdjustment {
Previous,
Next,
None,
}
Expand description
Whether to adjust the date, and in which direction. Useful when implementing arithmetic.
Variants§
Previous
The previous day should be used.
Next
The next day should be used.
None
The date should be used as-is.
Auto Trait Implementations§
impl Freeze for DateAdjustment
impl RefUnwindSafe for DateAdjustment
impl Send for DateAdjustment
impl Sync for DateAdjustment
impl Unpin for DateAdjustment
impl UnwindSafe for DateAdjustment
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