pub struct CivilDate {
pub year: i64,
pub month: i64,
pub day: i64,
}Expand description
A proleptic Gregorian calendar date.
Fields are public for lightweight utility use. Conversion functions validate dates before mapping them into epoch-based values.
Fields§
§year: i64Calendar year, using astronomical numbering.
month: i64Calendar month in the inclusive range 1..=12.
day: i64Calendar day in the inclusive range 1..=31, constrained by month/year.
Implementations§
Trait Implementations§
impl Copy for CivilDate
impl Eq for CivilDate
impl StructuralPartialEq for CivilDate
Auto Trait Implementations§
impl Freeze for CivilDate
impl RefUnwindSafe for CivilDate
impl Send for CivilDate
impl Sync for CivilDate
impl Unpin for CivilDate
impl UnsafeUnpin for CivilDate
impl UnwindSafe for CivilDate
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