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 StructuralEq for Date
impl StructuralPartialEq for Date
Auto Trait Implementations
impl RefUnwindSafe for Date
impl Send for Date
impl Sync for Date
impl Unpin for Date
impl UnwindSafe for Date
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more