pub enum Date {
YMD {
year: i32,
month: u32,
day: u32,
},
Week {
year: i32,
ww: u32,
d: u32,
},
Ordinal {
year: i32,
ddd: u32,
},
}
Expand description
A date, can hold three different formats.
Variants§
YMD
consists of year, month and day of month
Week
consists of year, week and day of week
Ordinal
consists of year and day of year
Trait Implementations§
impl Copy for Date
impl Eq for Date
impl StructuralPartialEq for Date
Auto Trait Implementations§
impl Freeze for Date
impl RefUnwindSafe for Date
impl Send for Date
impl Sync for Date
impl Unpin for Date
impl UnwindSafe for Date
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