pub struct SolarDate {
pub year: i32,
pub month: u8,
pub day: u8,
}Expand description
A date in the Gregorian (solar) calendar.
Fields§
§year: i32Proleptic Gregorian year (may be negative).
month: u8Month of the year, 1..=12.
day: u8Day of the month, 1..=31 depending on month and year.
Trait Implementations§
impl Copy for SolarDate
impl Eq for SolarDate
Source§impl Ord for SolarDate
impl Ord for SolarDate
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for SolarDate
impl PartialOrd for SolarDate
impl StructuralPartialEq for SolarDate
Auto Trait Implementations§
impl Freeze for SolarDate
impl RefUnwindSafe for SolarDate
impl Send for SolarDate
impl Sync for SolarDate
impl Unpin for SolarDate
impl UnsafeUnpin for SolarDate
impl UnwindSafe for SolarDate
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