enum DateWithDay {
OfMonth(i8),
OfYear(i16),
OfYearNoLeap(i16),
}
Expand description
Encodes the “with day” option of DateWith
.
This encodes the invariant that DateWith::day
, DateWith::day_of_year
and DateWith::day_of_year_no_leap
are all mutually exclusive and override
each other.
Note that when “day of year” or “day of year no leap” are used, then if a day of month is set, it is ignored.
Variants§
Trait Implementations§
Source§impl Clone for DateWithDay
impl Clone for DateWithDay
Source§fn clone(&self) -> DateWithDay
fn clone(&self) -> DateWithDay
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DateWithDay
impl Debug for DateWithDay
impl Copy for DateWithDay
Auto Trait Implementations§
impl Freeze for DateWithDay
impl RefUnwindSafe for DateWithDay
impl Send for DateWithDay
impl Sync for DateWithDay
impl Unpin for DateWithDay
impl UnwindSafe for DateWithDay
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